Skip to content

Commit

Permalink
upper case http method
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Feb 28, 2019
1 parent 02d8845 commit 8de236b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ func (s *Server) handlePlainHTTP(ctx context.Context, request *http.Request, wri
Protocol: "http/1.1",
}

content.SetAttribute(":method", request.Method)
content.SetAttribute(":method", strings.ToUpper(request.Method))
content.SetAttribute(":path", request.URL.Path)
for key := range request.Header {
value := request.Header.Get(key)
Expand Down

0 comments on commit 8de236b

Please sign in to comment.