async-http 0.45.1 → 0.45.2
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/endpoint.rb +8 -1
- data/lib/async/http/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fd3485998dfbfe873f250f4d03b87500f044e951ced9ed78fa301432a8739cc
|
4
|
+
data.tar.gz: 535f052cc05605ba05d361901f64a020b354a9e669b376ea749a81908e2d0758
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 282c6ff55e6fd7c89ce5033ed5c286f0dc1e4465e44c75e0a05325473cd5e2975a4f180f6558cb8e2dbc3cc3787896a41029a7d91847a027f2011a5f4d90507f
|
7
|
+
data.tar.gz: 69a4c6a01d23a9540f21814967afa6e1f8cea10c6f055c31940d2beefdf72aa3bf5350c5f78d937bfd8cb3e58e8805c252fc8e0f246bf9c759b815234a4afb9d
|
data/lib/async/http/endpoint.rb
CHANGED
@@ -113,8 +113,15 @@ module Async
|
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
116
|
+
# Return the path and query components of the given URL.
|
116
117
|
def path
|
117
|
-
@url.
|
118
|
+
buffer = @url.path || "/"
|
119
|
+
|
120
|
+
if query = @url.query
|
121
|
+
buffer << "?#{query}"
|
122
|
+
end
|
123
|
+
|
124
|
+
return buffer
|
118
125
|
end
|
119
126
|
|
120
127
|
DEFAULT_ALPN_PROTOCOLS = ['h2', 'http/1.1'].freeze
|
data/lib/async/http/version.rb
CHANGED