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

Commits on Aug 26, 2015

  1. Set Content-Length: 0 when an AppFunc completes without a write

    - 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
    halter73 committed Aug 26, 2015
    Configuration menu
    Copy the full SHA
    6975923 View commit details
    Browse the repository at this point in the history
  2. Don't automatically set Content-Length: 0 in some circumstances

    - When in response to a HEAD Request
    - For 101, 204, 205 and 304 responses
    - For non keep-alive connections
    halter73 committed Aug 26, 2015
    Configuration menu
    Copy the full SHA
    2642c84 View commit details
    Browse the repository at this point in the history