async-http 0.27.5 → 0.27.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/async/http/content_encoding.rb +4 -0
- data/lib/async/http/response.rb +4 -0
- data/lib/async/http/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '04804a551a037e5843feb5bb4f90f1894adf06b9f962e82aba11922ff4e31fe8'
|
4
|
+
data.tar.gz: 43d4433a0f3ca5bc621e8af54d4679022abf89475016d08a12d7db878781c6f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf2278a356aeb0dadf8c3acec77ef21f50c91fdad4a43adcda743098cf68f550d460d7096b32d001898919520e58923bbb7ab5d3c428c838869fd0bd41bd4be3
|
7
|
+
data.tar.gz: c78ffd154a4b249ee068c7988c97446670c2d17e24470b4b9f95ceef83179ff590773950c9a69766e619717810d3f6d7b421e34eff1a0c6913ba4ac2876e0275
|
@@ -46,6 +46,10 @@ module Async
|
|
46
46
|
# Early exit if the response has already specified a content-encoding.
|
47
47
|
return response if response.headers['content-encoding']
|
48
48
|
|
49
|
+
# This is a very tricky issue, so we avoid it entirely.
|
50
|
+
# https://lists.w3.org/Archives/Public/ietf-http-wg/2014JanMar/1179.html
|
51
|
+
return response if response.partial?
|
52
|
+
|
49
53
|
# TODO use http-accept and sort by priority
|
50
54
|
if !response.body.empty? and accept_encoding = request.headers['accept-encoding']
|
51
55
|
if content_type = response.headers['content-type'] and @content_types =~ content_type
|
data/lib/async/http/response.rb
CHANGED
data/lib/async/http/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.27.
|
4
|
+
version: 0.27.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|