Omit Transfer-Encoding header in proxy responses

Beef automatically calculates and inserts a Content-Length header when
sending proxy responses. If the Transfer-Encoding header is not
stripped, many browsers treat this as a Content-Length of 0, thus
rendering an empty body.
This commit is contained in:
Matt Metzger
2017-04-09 01:20:32 -04:00
parent a083fc2b63
commit f0fdc3d537

View File

@@ -157,6 +157,7 @@ module BeEF
"Connection",
"Expires",
"Accept-Ranges",
"Transfer-Encoding",
"Date"]
headers.each_line do |line|
# stripping the Encoding, Cache and other headers