From 8de236b08c18abfba8cfad9d30718475b96b12a5 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Thu, 28 Feb 2019 14:36:31 +0100 Subject: [PATCH] upper case http method --- proxy/http/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/http/server.go b/proxy/http/server.go index cc639084..3ab9d311 100755 --- a/proxy/http/server.go +++ b/proxy/http/server.go @@ -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)