Skip to content

ReverseProxy: Streaming and disable encoding if Range

href requested to merge href/pleroma:proxy-range-and-chunk into develop

Fixes #1823 (closed) -- Remove accept-encoding request header if there's range of if-range. See the comment in the issue about why...

Fixes #1860 (closed) -- Adds the content-length if there's one. This allows to stream the response on http1 instead of chunking. (http2 will always stream as there's no chunking). We originally couldn't do that when reverse proxy was introduced as this behaviour isn't supported by Cowboy 1.

Adds debug logging of the response result, and removes ugly usage of (fn ...).() in pipes.

Merge request reports