Bug 50402

Summary: SetEnv proxy-sendchunks is ignored for small amounts of data
Product: Apache httpd-2 Reporter: Tomas Bjurman <tbjurman>
Component: mod_proxy_httpAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 2.5-HEAD   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Honor SetEnv proxy-sendchunked with small data

Description Tomas Bjurman 2010-12-02 14:48:58 UTC
Created attachment 26366 [details]
Honor SetEnv proxy-sendchunked with small data

When sending small amounts of data using Transfer-Encoding: chunked, it gets forwarded using Content-Length even though I have SetEnv proxy-sendchunked.

I don't really know if this is to be considered a bug or a feature but it's certainly something that gets confusing when the behavior is dependent on the amount of data sent.

My suggestion is to keep this behavior, unless we explicitly request to pass chunked data on to the receiver by using SetEnv proxy-sendchunked.

I'll attach a patch so you can see what I mean.