1. 12 May, 2018 1 commit
  2. 03 May, 2018 3 commits
  3. 02 May, 2018 3 commits
  4. 01 May, 2018 3 commits
  5. 27 Apr, 2018 1 commit
  6. 24 Apr, 2018 4 commits
  7. 23 Apr, 2018 1 commit
  8. 22 Apr, 2018 2 commits
  9. 21 Apr, 2018 3 commits
  10. 19 Apr, 2018 1 commit
  11. 18 Apr, 2018 8 commits
  12. 09 Apr, 2018 2 commits
    • Kenton Varda's avatar
      Merge pull request #659 from capnproto/head-content-length · 394643ba
      Kenton Varda authored
      Allow app to send arbitrary Content-Length/Transfer-Encoding in HEAD responses.
      394643ba
    • Kenton Varda's avatar
      Allow app to send arbitrary Content-Length/Transfer-Encoding in HEAD responses. · be9b18c5
      Kenton Varda authored
      Previously, the app could control Content-Length by passing `expectedBodySize`. This is great for enabling code that "just works" by handling GET and HEAD requests identically.
      
      However, in somewhat more-complicated situations -- especilaly in proxies -- you end up having to write special-case hacks for HEAD requests to deal with the fact that the body is actually empty, but has a non-zero "expected" size.
      
      We can make life easier for proxies by allowing the application to directly set the Content-Length and Transfer-Encoding headers in the case of HEAD responses, much like we allow applications to set WebSocket-related headers on non-WebSocket requests/responses.
      
      This change actually fixes a bug in Cloudflare Workers where Content-Length is not passed through correctly for HEAD responses. No changes are needed on the Workers side (except adding a test).
      be9b18c5
  13. 03 Apr, 2018 2 commits
  14. 02 Apr, 2018 6 commits