Skip to content

Commit

Permalink
delete unnecessary code lines in server/converter.go
Browse files Browse the repository at this point in the history
  • Loading branch information
xusworld committed Nov 16, 2020
1 parent 00249c2 commit 9b66261
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions server/converter.go
Original file line number Diff line number Diff line change
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 9b66261

Please sign in to comment.