Skip to content

Commit 3914e06

Browse files
committed
Add auto_inflate.
1 parent 998d366 commit 3914e06

File tree

2 files changed

+35
-28
lines changed

2 files changed

+35
-28
lines changed

Gemfile.lock

+33-28
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,54 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.8.1)
5-
public_suffix (>= 2.0.2, < 6.0)
6-
connection_pool (2.3.0)
7-
domain_name (0.5.20190701)
8-
unf (>= 0.0.5, < 1.0.0)
9-
ffi (1.15.5)
10-
ffi-compiler (1.0.1)
11-
ffi (>= 1.0.0)
4+
addressable (2.8.7)
5+
public_suffix (>= 2.0.2, < 7.0)
6+
base64 (0.2.0)
7+
connection_pool (2.4.1)
8+
domain_name (0.6.20240107)
9+
ffi (1.17.0)
10+
ffi-compiler (1.3.2)
11+
ffi (>= 1.15.5)
1212
rake
13-
http (5.1.1)
13+
http (5.2.0)
1414
addressable (~> 2.8)
15+
base64 (~> 0.1)
1516
http-cookie (~> 1.0)
1617
http-form_data (~> 2.2)
17-
llhttp-ffi (~> 0.4.0)
18-
http-cookie (1.0.5)
18+
llhttp-ffi (~> 0.5.0)
19+
http-cookie (1.0.8)
1920
domain_name (~> 0.5)
2021
http-form_data (2.3.0)
2122
kgio (2.11.4)
22-
llhttp-ffi (0.4.0)
23+
llhttp-ffi (0.5.0)
2324
ffi-compiler (~> 1.0)
2425
rake (~> 13.0)
25-
mustermann (3.0.0)
26+
logger (1.6.3)
27+
mustermann (3.0.3)
2628
ruby2_keywords (~> 0.0.1)
27-
nio4r (2.5.8)
28-
public_suffix (5.0.1)
29-
puma (6.0.2)
29+
nio4r (2.7.4)
30+
public_suffix (6.0.1)
31+
puma (6.5.0)
3032
nio4r (~> 2.0)
31-
rack (2.2.6.2)
32-
rack-protection (3.0.5)
33-
rack
34-
raindrops (0.20.0)
35-
rake (13.0.6)
33+
rack (3.1.8)
34+
rack-protection (4.1.1)
35+
base64 (>= 0.1.0)
36+
logger (>= 1.6.0)
37+
rack (>= 3.0.0, < 4)
38+
rack-session (2.0.0)
39+
rack (>= 3.0.0)
40+
raindrops (0.20.1)
41+
rake (13.2.1)
3642
ruby2_keywords (0.0.5)
3743
sd_notify (0.1.1)
38-
sinatra (3.0.5)
44+
sinatra (4.1.1)
45+
logger (>= 1.6.0)
3946
mustermann (~> 3.0)
40-
rack (~> 2.2, >= 2.2.4)
41-
rack-protection (= 3.0.5)
47+
rack (>= 3.0.0, < 4)
48+
rack-protection (= 4.1.1)
49+
rack-session (>= 2.0.0, < 3)
4250
tilt (~> 2.0)
43-
tilt (2.0.11)
44-
unf (0.1.4)
45-
unf_ext
46-
unf_ext (0.0.8.2)
51+
tilt (2.4.0)
4752
unicorn (6.1.0)
4853
kgio (~> 2.6)
4954
raindrops (~> 0.7)

app/app.rb

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ def download_with_http(url)
3737
response = HTTP
3838
.follow(max_hops: 5)
3939
.timeout(connect: 4, write: 4, read: 5)
40+
.headers({accept_encoding: "gzip, deflate"})
41+
.use(:auto_inflate)
4042
.get(url)
4143
{
4244
url: url,

0 commit comments

Comments
 (0)