Skip to content
Snippets Groups Projects

Draft: Block any attempt to read the body of X-Sendfile responses

Open Robert May requested to merge action-dispatch-patch into master
  1. Sep 04, 2023
    • Robert May's avatar
      Patch ActionDispatch::Response to prevent X-Sendfile body parsing · 56387926
      Robert May authored
      Patches ActionDispatch::Response to return a new custom derivative
      of ActionDispatch::Response::FileBody, which will prevent regressions
      being introduced that attempt to load the contents of files being
      returned as an X-Sendfile response, causing memory bloat and process
      locks.
      
      Changelog: performance
      56387926
Loading