This commit is contained in:
Jeff Becker 2019-01-19 08:50:34 -05:00
parent 4031d38f34
commit 877758bccb
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ func (h *httpProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
http.Error(w, "hijack disallowed", http.StatusInternalServerError) http.Error(w, "hijack disallowed", http.StatusInternalServerError)
return return
} }
w.Header().Del("Transfer-Encoding")
w.WriteHeader(http.StatusOK) w.WriteHeader(http.StatusOK)
conn, _, err := hijacker.Hijack() conn, _, err := hijacker.Hijack()
if err != nil { if err != nil {