Browse Source

Add Keep-Alive to removed headers in RemoveHopByHopHeaders

Shelikhoo 1 year ago
parent
commit
a40f0c4d11
1 changed files with 1 additions and 0 deletions
  1. 1 0
      common/protocol/http/headers.go

+ 1 - 0
common/protocol/http/headers.go

@@ -35,6 +35,7 @@ func RemoveHopByHopHeaders(header http.Header) {
 	header.Del("Trailers")
 	header.Del("Trailers")
 	header.Del("Transfer-Encoding")
 	header.Del("Transfer-Encoding")
 	header.Del("Upgrade")
 	header.Del("Upgrade")
+	header.Del("Keep-Alive")
 
 
 	connections := header.Get("Connection")
 	connections := header.Get("Connection")
 	header.Del("Connection")
 	header.Del("Connection")