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

Make sure HEAD / has 0 Content-Length #21077

Merged
merged 1 commit into from Oct 21, 2016

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Oct 21, 2016

Before this commit curl -XHEAD localhost:9200?pretty would return
Content-Length: 1 and a body which is fairly upsetting to standards
compliant tools. Now it'll return Content-Length: 0 with an empty
body like every other HEAD request.

Relates to #21075

Before this commit `curl -XHEAD localhost:9200?pretty` would return
`Content-Length: 1` and a body which is fairly upsetting to standards
compliant tools. Now it'll return `Content-Length: 0` with an empty
body like every other `HEAD` request.

Relates to elastic#21075
Copy link
Member

@jasontedor jasontedor left a comment

Choose a reason for hiding this comment

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

LGTM. Can you also open a blocker issue for 6.0.0 to address the content-length header?

@nik9000 nik9000 merged commit 8cc22eb into elastic:master Oct 21, 2016
@nik9000
Copy link
Member Author

nik9000 commented Oct 21, 2016

Thanks for reviewing @jasontedor ! Merged to:

master: 8cc22eb
5.x: 2a18d2b
5.0: 5f7ce3c

nik9000 added a commit that referenced this pull request Oct 21, 2016
Before this commit `curl -XHEAD localhost:9200?pretty` would return
`Content-Length: 1` and a body which is fairly upsetting to standards
compliant tools. Now it'll return `Content-Length: 0` with an empty
body like every other `HEAD` request.

Relates to #21075
nik9000 added a commit that referenced this pull request Oct 21, 2016
Before this commit `curl -XHEAD localhost:9200?pretty` would return
`Content-Length: 1` and a body which is fairly upsetting to standards
compliant tools. Now it'll return `Content-Length: 0` with an empty
body like every other `HEAD` request.

Relates to #21075
@Mpdreamz
Copy link
Member

Thank you so much @jasontedor and @nik9000, amazing turn around time!

@jasontedor
Copy link
Member

LGTM. Can you also open a blocker issue for 6.0.0 to address the content-length header?

This was partially addressed in #21123, at least the correct content-length can be passed through now. We still have some handlers that handle head requests on their own and that needs to be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants