1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-02-20 23:47:21 -05:00

upper case http method

This commit is contained in:
Darien Raymond 2019-02-28 14:36:31 +01:00
parent 02d8845093
commit 8de236b08c
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -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)