mirror of https://github.com/v2ray/v2ray-core
upper case http method
parent
02d8845093
commit
8de236b08c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue