Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue 289: Transfer-Encoding chunked header duplicated #290

Merged
merged 1 commit into from
Jul 8, 2015

Conversation

yanns
Copy link
Member

@yanns yanns commented Jul 1, 2015

No description provided.

@@ -102,6 +102,10 @@ trait HttpServletRequestHandler extends RequestHandler {
case (name, value) if name.equalsIgnoreCase(play.api.http.HeaderNames.SET_COOKIE) =>
getServletCookies(value).foreach(httpResponse.addCookie)

case (name, value) if name.equalsIgnoreCase(HeaderNames.TRANSFER_ENCODING) && value == HttpProtocol.CHUNKED =>
// ignore this header
// the JEE container sets this header itself. Avoid duplication of header (issues/289)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure this header is set by all containers ?

Why did that work before ?
More, before what ? With Play 2.1.x ? Or with earlier versions of Tomcat ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, it is working because the header is duplicated. But most of HTTP clients deal with that.
It is only a trouble for some picky clients... ;)

As far as I know, the containers set this header automatically.
But I have not searched the JEE specs to check if the container must set this header.

It is a minor issue in my opinion.

dlecan added a commit that referenced this pull request Jul 8, 2015
…eader

fix issue 289: Transfer-Encoding chunked header duplicated
@dlecan dlecan merged commit f75bcca into develop-2.2.x Jul 8, 2015
@yanns yanns deleted the issue-#289_duplicated_chunked_header branch July 9, 2015 09:20
@dlecan dlecan added this to the 1.2.1 milestone Jul 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants