1. 21 Nov, 2018 1 commit
    • Kenton Varda's avatar
      Extend kj::Url with option to not collapse empty path/query components. · a358282e
      Kenton Varda authored
      This is to fix a complaint about Cloudflare Workers removing these components as requests pass through, which apparently breaks someone's funky URLs.
      
      Arguably "." and ".." processing presents a similar problems. But, allowing ".." to pass through is much more likely to lead to security problems. Browsers will generally process "." and ".." before sending a request (whereas they won't collapse double-slashes), so we're following their lead here.
      a358282e
  2. 06 Nov, 2018 1 commit
  3. 05 Nov, 2018 1 commit
    • Kenton Varda's avatar
      Allow WebSocket to keep sending after close(). · 308e5cda
      Kenton Varda authored
      In Cloudflare Workers, we've observed applications in the wild that continue to send messages after a Close message. This is incorrect, but it happens, and we end up logging a spurious error as we attempt to proxy the message through.
      
      By removing this restriction, we can now proxy these WebSockets despite the incorrect usage.
      308e5cda
  4. 29 Oct, 2018 2 commits
  5. 26 Oct, 2018 1 commit
  6. 20 Oct, 2018 1 commit
  7. 12 Oct, 2018 2 commits
    • Kenton Varda's avatar
      Merge pull request #751 from… · f73ac9f6
      Kenton Varda authored
      Merge pull request #751 from capnproto/harris/zero-length-responses-get-no-content-length-and-great-sadness
      
      Zero-length HTTP responses get no Content-Length header
      f73ac9f6
    • Harris Hancock's avatar
      Zero-length HTTP responses to HEAD get no Content-Length header · 48083d47
      Harris Hancock authored
      There is currently no way to explicitly omit a Content-Length/Transfer-Encoding header on an HTTP response to a HEAD request. This is awkward for a proxy, which would ideally pass along responses as-is, even if they have no such headers.
      
      This change allows an author to pass zero as the expected body length to HttpService::Response::send() to mean "do not set any body header." This means that a proxy might strip Content-Length: 0 headers, but will never add a Content-Length header where there was none before.
      48083d47
  8. 10 Oct, 2018 2 commits
  9. 08 Oct, 2018 1 commit
  10. 07 Oct, 2018 3 commits
  11. 27 Sep, 2018 4 commits
  12. 25 Sep, 2018 2 commits
  13. 17 Sep, 2018 1 commit
  14. 16 Sep, 2018 3 commits
  15. 11 Sep, 2018 1 commit
  16. 10 Sep, 2018 1 commit
  17. 08 Sep, 2018 2 commits
  18. 07 Sep, 2018 1 commit
    • Oleg Kolosov's avatar
      Change KJ_LOG macro to use "for" statement · 11ee5380
      Oleg Kolosov authored
      Using "for" statement instead of "if", as suggested by Kenton, still
      avoids "dangling else" warnings and also allows to have diagnostics on
      missing ";" at the end. So this way is better.
      11ee5380
  19. 05 Sep, 2018 1 commit
  20. 02 Sep, 2018 1 commit
  21. 31 Aug, 2018 1 commit
  22. 30 Aug, 2018 1 commit
  23. 29 Aug, 2018 3 commits
  24. 26 Aug, 2018 3 commits