-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
HEAD requests return a response body when pretty=true #21075
Comments
Additionally, the header is wrong. From RFC 2616:
|
We have a short-term fix for REST main action that will address this issue so that there is not a body. We have a plan to address all HEAD methods as a future follow up (so that the content-length header is correct). There will be a PR from @nik9000 shortly. |
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
I've opened the short term workaround (#21077) and we'll repurpose this issue for the long term, fully rfc compliant fix. |
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
We'll open a new issue for the content-length piece and relate it here. |
Closed by #21077 |
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 #21075
Partially addressed in #21123. |
Elasticsearch version: 5.0.0-rc1
Elasticsearch returns a response body when
pretty=true
is specified on aHEAD
request which violates the HTTP 1.1 specificationThis causes a problem within the .NET client, which conforms strictly to the HTTP 1.1 spec.
The text was updated successfully, but these errors were encountered: