[ 
https://issues.apache.org/jira/browse/HTTPCORE-765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17818277#comment-17818277
 ] 

Oleg Kalnichevski commented on HTTPCORE-765:
--------------------------------------------

> I am working on this

[~_vishalbihani] Please do not. This has been discussed multiple times and this 
idea has been rejected multiple times. Please either add an empty entity to the 
request if you want the protocol handler to generate a `content-length` header 
automatically or use a custom request interceptor to add whatever custom logic 
you deem appropriate for your application. 

Oleg

> Add content-length header when entity is null
> ---------------------------------------------
>
>                 Key: HTTPCORE-765
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-765
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore
>    Affects Versions: 5.3-alpha2
>            Reporter: Vishal Bihani
>            Priority: Minor
>
> When entity details is null, by default it should add a content-length header 
> with value 0. Not adding that results in 411 (Content Length required) error.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to