mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-11-23 12:02:58 -05:00
upper case http method
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user