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

definition of HEAD vs "payload header fields" #559

Closed
reschke opened this issue Dec 3, 2020 · 2 comments · Fixed by #602
Closed

definition of HEAD vs "payload header fields" #559

reschke opened this issue Dec 3, 2020 · 2 comments · Fixed by #602

Comments

@reschke
Copy link
Contributor

reschke commented Dec 3, 2020

currently links to "Message Payload", but that is not that helpful in order to find out what fields actually are "payload header fields".

@reschke
Copy link
Contributor Author

reschke commented Dec 4, 2020

Note. We currently say:

"The server SHOULD send the same header fields in response to a HEAD request as it would have sent if the request had been a GET, except that the payload header fields (Section 6.4) MAY be omitted."

#555 would change this to:

"The server SHOULD send the same header fields in response to a HEAD request as it would have sent if the request had been a GET, except that header fields that describe message body encoding or transmission (e.g., Transfer-Encoding) MAY be omitted."

(me confused by that)

@royfielding
Copy link
Member

I should probably just list them all. Content-Length and Transfer-Encoding are the obvious ones, but I would have to go through the spec to be sure there are not more.

The reason for this is that servers do not generate the body on HEAD responses, so the fields that are defined while buffering the first 8K of body (when they can still be sent as headers) are not sent on HEAD responses. Maybe we should just say that.

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

Successfully merging a pull request may close this issue.

2 participants