Sfoglia il codice sorgente

Add Keep-Alive to removed headers in RemoveHopByHopHeaders

Shelikhoo 1 anno fa
parent
commit
a40f0c4d11
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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")