Преглед на файлове

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")