Commit 05bf7368 authored by Georges-Etienne Legendre's avatar Georges-Etienne Legendre Committed by Nick Thomas

Fix Content-Length set prior to SendUrl injection

parent d1a7eb5d
---
title: Fix Content-Length set prior to SendUrl injection
merge_request: 496
author: Georges-Etienne Legendre
type: fixed
......@@ -148,6 +148,9 @@ func (e *entry) Inject(w http.ResponseWriter, r *http.Request, sendData string)
return
}
// fix issue #267, where Content-Length was set prior to injection
w.Header().Del("Content-Length")
// copy response headers and body, except the headers from preserveHeaderKeys
for key, value := range resp.Header {
if !preserveHeaderKeys[key] {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment