Do not decode content on the way through
mjumbewu opened this issue · comments
We should be using response.raw
instead of response.content
in the proxy view. This would probably relieve us of the need to declare content-encoding and content-length as excluded headers.
The raw
will come through as a urllib3 HTTPResponse object. We can use this fact to even do things like return a streaming response when appropriate (maybe for another day though).