Skip to content

Commit

Permalink
gh-30 Only use gzip decompression where available
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonmcmurray committed Jun 6, 2020
1 parent de4f4df commit 2057ad3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions req/req.q
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ ty:@[ty;`json;:;"application/json"]
// @kind data
// @category variable
// @fileoverview Dictionary with decompress functions for Content-Encoding types
decompress:()!()
decompress[enlist"gzip"]:-35!
decompress:enlist[enlist""]!enlist(::)
// use native gzip decompression where available
if[.z.K>=3.7;decompress[enlist"gzip"]:-35!];

// @kind function
// @category private
Expand Down

0 comments on commit 2057ad3

Please sign in to comment.