1. 15 Jul, 2022 6 commits
  2. 13 Jul, 2022 1 commit
  3. 08 Jun, 2022 1 commit
  4. 23 May, 2022 1 commit
  5. 16 May, 2022 4 commits
  6. 07 Feb, 2022 1 commit
  7. 25 Dec, 2021 2 commits
  8. 18 Nov, 2021 2 commits
  9. 08 Nov, 2021 6 commits
  10. 02 Nov, 2021 1 commit
  11. 21 Oct, 2021 1 commit
  12. 14 Oct, 2021 1 commit
  13. 12 Oct, 2021 1 commit
    • Andrej Shadura's avatar
      Make sure Accept-Encoding is not forwarded upstream · 3416057f
      Andrej Shadura authored
      
      
      Some HTTP clients (e.g. Go’s) like to save traffic by requesting gzip
      compression of the HTTP responses (Accept-Encoding: gzip). When the
      server supports compression, it will set Content-Encoding: gzip and
      compress the response body.
      
      However, Go’s HTTP client only transparently decoded gzip-compressed
      responses when it requests the compression on its own, but not when
      the user sets Accept-Encoding header:
      
      > DisableCompression, if true, prevents the Transport from
      > requesting compression with an "Accept-Encoding: gzip"
      > request header when the Request contains no existing
      > Accept-Encoding value. If the Transport requests gzip on
      > its own and gets a gzipped response, it's transparently
      > decoded in the Response.Body. However, if the user
      > explicitly requested gzip it is not automatically
      > uncompressed.
      
      As the result, the compressed body is returned as is, without the
      mediator knowing about it; it then spits it out to the requester without
      setting Content-Encoding header; however, if Content-Type header wasn’t
      set, Go’s HTTP server would automatically detect that the response body
      is compressed, and set Content-Type: application/x-gzip.
      
      Apertis: T8346
      Signed-off-by: Andrej Shadura's avatarAndrej Shadura <andrew.shadura@collabora.co.uk>
      3416057f
  14. 07 Oct, 2021 1 commit
  15. 06 Oct, 2021 1 commit
  16. 05 Oct, 2021 7 commits
  17. 28 Sep, 2021 1 commit
  18. 21 Sep, 2021 1 commit
  19. 31 Aug, 2021 1 commit