Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Set Content-Length: 0 when an AppFunc completes without a write #174

Merged
merged 2 commits into from Aug 26, 2015

Conversation

halter73
Copy link
Member

- Previously an incomplete chunked response would be written instead.
- Add test to verify Content-Length: 0 is set automatically.
- Add test to verify HTTP/1.0 keep-alive isn't used if no Content-Length
  is set for the response.
- Add tests to verify errors are handled properly after chunked writes.

#173
@Tratcher
Copy link
Member

:shipit:

1 similar comment
@lodejard
Copy link
Contributor

:shipit:

- When in response to a HEAD Request
- For 101, 204, 205 and 304 responses
- For non keep-alive connections
@halter73
Copy link
Member Author

I took a look at WebListener like @Tratcher suggested. I pulled the list of status codes not to send Content-Lenght: 0 for from there.

@halter73 halter73 merged commit 2642c84 into release Aug 26, 2015
@halter73 halter73 deleted the shalter/empty-response branch September 4, 2015 22:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants