You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (Jira)" <ji...@apache.org> on 2023/01/09 16:43:00 UTC

[jira] [Resolved] (HTTPCORE-732) Is it onpurpose that content-length header is not set in http/2 mode?

     [ https://issues.apache.org/jira/browse/HTTPCORE-732?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved HTTPCORE-732.
----------------------------------------
    Resolution: Not A Problem

> Is it onpurpose that content-length header is not set in http/2 mode?
> ---------------------------------------------------------------------
>
>                 Key: HTTPCORE-732
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-732
>             Project: HttpComponents HttpCore
>          Issue Type: Improvement
>          Components: HttpCore
>    Affects Versions: 5.1.4
>            Reporter: Johan Compagner
>            Priority: Major
>
> see: [httpcomponents-core/H2RequestContent.java at master · apache/httpcomponents-core (github.com)|https://github.com/apache/httpcomponents-core/blob/master/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/protocol/H2RequestContent.java#L82]
>  
> there 3 things are set, but not the content length.
> (if protocol would be < 2 then super.process() would be called which would set it)
>  
> i know http/2 mode setting the content length is optional.  But some servers seems to really want it. And i think as long as the content-length is known upfront it shouldn't harm to set it right?
>  



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

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