Parcourir la source

Add Keep-Alive to removed headers in RemoveHopByHopHeaders

Shelikhoo il y a 1 an
Parent
commit
a40f0c4d11
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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("Transfer-Encoding")
 	header.Del("Upgrade")
+	header.Del("Keep-Alive")
 
 	connections := header.Get("Connection")
 	header.Del("Connection")