1. 22 May, 2018 1 commit
    • Ivan Shapovalov's avatar
      cmake: drop NO_DEFAULT_PATHS when searching libraries · 25b306ef
      Ivan Shapovalov authored
      It looks like pkg-config silently drops -I and -L flags pointing to
      default directories:
      
      ```
      $ cat /usr/lib/pkgconfig/capnp.pc
      prefix=/usr
      exec_prefix=${prefix}
      libdir=${exec_prefix}/lib
      includedir=${prefix}/include
      
      Name: Cap'n Proto
      Description: Insanely fast serialization system
      Version: 0.7-dev
      Libs: -L${libdir} -lcapnp -pthread  -lpthread
      Libs.private:  -lpthread
      Requires: kj = 0.7-dev
      Cflags: -I${includedir} -pthread
      
      $ pkg-config --libs capnp
      -lcapnp -pthread -lpthread -lkj -pthread -lpthread
      ```
      
      Ideally, however, we should use FindPkgConfig.cmake's own facilities
      to generate IMPORTED targets from pkg-config files.
      25b306ef
  2. 15 May, 2018 2 commits
  3. 12 May, 2018 1 commit
  4. 03 May, 2018 3 commits
  5. 02 May, 2018 3 commits
  6. 01 May, 2018 3 commits
  7. 27 Apr, 2018 1 commit
  8. 24 Apr, 2018 4 commits
  9. 23 Apr, 2018 1 commit
  10. 22 Apr, 2018 2 commits
  11. 21 Apr, 2018 3 commits
  12. 19 Apr, 2018 1 commit
  13. 18 Apr, 2018 8 commits
  14. 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
  15. 03 Apr, 2018 2 commits
  16. 02 Apr, 2018 3 commits