1. 13 Jul, 2018 1 commit
    • Harris Hancock's avatar
      cmake: Use search-specific-dirs-then-system-dirs idiom · df0fbbe3
      Harris Hancock authored
      An inconsistency was introduced with the previous fix to allow Cap'n Proto
      installations in system directories to be found by CapnProtoTargets.cmake:
      if the user installed Cap'n Proto in two locations, one of which is a
      system directory, e.g. /usr and /somewhere/else, and set
      PKG_CONFIG_PATH=/somewhere/else/lib/pkgconfig, the dependent project
      would use headers from /somewhere/else/include, but libraries from /usr/lib.
      
      This change resolves the inconsistency, allowing PKG_CONFIG_PATH to solely
      control the location of the desired installation of Cap'n Proto.
      df0fbbe3
  2. 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
  3. 15 May, 2018 2 commits
  4. 12 May, 2018 1 commit
  5. 03 May, 2018 3 commits
  6. 02 May, 2018 3 commits
  7. 01 May, 2018 3 commits
  8. 27 Apr, 2018 1 commit
  9. 24 Apr, 2018 4 commits
  10. 23 Apr, 2018 1 commit
  11. 22 Apr, 2018 2 commits
  12. 21 Apr, 2018 3 commits
  13. 19 Apr, 2018 1 commit
  14. 18 Apr, 2018 8 commits
  15. 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
  16. 03 Apr, 2018 2 commits
  17. 02 Apr, 2018 2 commits