jira-importer opened a new issue, #1315:
URL: https://github.com/apache/httpcomponents-core/issues/1315

   **[Bill 
Speirs](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=wspeirs)** 
opened 
**[HTTPCORE-264](https://issues.apache.org/jira/browse/HTTPCORE-264?redirect=false)**
 and commented
   
   Currently the ResponseContent interceptor will throw an exception if the 
Content-Length or Transfer-Encoding headers are found in the response. I am 
proposing a patch which adds 2 new constructors to ResponseContent. These new 
constructors allow ResponseContent to overwrite the Content-Length and/or 
Transfer-Encoding headers if they're already found instead of throwing an 
exception.
   
   The biggest use I see for this is in a reverse proxy. The response from the 
proxied server will already have proper Content-Length and Transfer-Encoding 
headers. However, this interceptor throws an exception in this case. The simple 
answer is to remove this interceptor; however, I would like to clean-up any 
response where these headers might be missing.
   
   The default constructor is to thrown an exception if these headers are found.
   
   
   ---
   
   **Affects:** 4.1.2, 4.2-alpha1, 4.2, Future
   
   **Attachments:**
   - 
[ResponseContent.diff](https://issues.apache.org/jira/secure/attachment/12486192/ResponseContent.diff)
 (_4.32 kB_)
   - 
[TestStandardInterceptors.diff](https://issues.apache.org/jira/secure/attachment/12486334/TestStandardInterceptors.diff)
 (_1.67 kB_)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to