ソースを参照

Add Keep-Alive to removed headers in RemoveHopByHopHeaders

Shelikhoo 1 年間 前
コミット
a40f0c4d11
1 ファイル変更1 行追加0 行削除
  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")