Browse Source

upper case http method

pull/2034/head^2
Darien Raymond 6 years ago
parent
commit
8de236b08c
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 2
      proxy/http/server.go

2
proxy/http/server.go

@ -243,7 +243,7 @@ func (s *Server) handlePlainHTTP(ctx context.Context, request *http.Request, wri
Protocol: "http/1.1", Protocol: "http/1.1",
} }
content.SetAttribute(":method", request.Method) content.SetAttribute(":method", strings.ToUpper(request.Method))
content.SetAttribute(":path", request.URL.Path) content.SetAttribute(":path", request.URL.Path)
for key := range request.Header { for key := range request.Header {
value := request.Header.Get(key) value := request.Header.Get(key)

Loading…
Cancel
Save