Skip to content

Commit

Permalink
Merge pull request #507 from xusworld/4.0
Browse files Browse the repository at this point in the history
delete unnecessary code lines in server/converter.go
  • Loading branch information
smallnest committed Nov 16, 2020
2 parents 00249c2 + 9b66261 commit 5cf9653
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions server/converter.go
Expand Up @@ -81,15 +81,9 @@ func HTTPRequest2RpcxRequest(r *http.Request) (*protocol.Message, error) {
req.Metadata[share.AuthKey] = auth
}

sp := h.Get(XServicePath)
if sp != "" {
req.ServicePath = sp
}
req.ServicePath = h.Get(XServicePath)

sm := h.Get(XServiceMethod)
if sm != "" {
req.ServiceMethod = sm
}
req.ServiceMethod = h.Get(XServiceMethod)

payload, err := ioutil.ReadAll(r.Body)
if err != nil {
Expand Down

0 comments on commit 5cf9653

Please sign in to comment.