Skip to content
Snippets Groups Projects

ReverseProxy: Streaming and disable encoding if Range

Merged 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

Pipeline #28420 passed

Pipeline passed for 72b3dbf4 on href:proxy-range-and-chunk

Merged by feldfeld 4 years ago (Jul 10, 2020 4:18pm UTC)

Loading

Pipeline #28421 passed

Pipeline passed for ce951400 on develop

Test coverage 88.60% from 0 jobs

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading