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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 993fa6b4958e7b8365aaeae3c20037cffec69a3fa623947d0a7acd264f631541
4
- data.tar.gz: 93d4cfc3e8ed8a28cbb8086636b87e773398be04656fb4664f005f4466432866
3
+ metadata.gz: 9fd3485998dfbfe873f250f4d03b87500f044e951ced9ed78fa301432a8739cc
4
+ data.tar.gz: 535f052cc05605ba05d361901f64a020b354a9e669b376ea749a81908e2d0758
5
5
  SHA512:
6
- metadata.gz: de3bacfaf3b423294a6ba7715159ff2a24ae6396418d937cf6f125b7acc71f10bc5608253119d46116b360857be1b3b1a48805d0259b05e0d688196fd01b3340
7
- data.tar.gz: 2cd1897eec316446d31e791a1cd00b4f9ce4bc3a8781a0621ba8024122a0a6ed14f214b3c778fd2d14ebfc7555c1e60102ae33ca229b778082c5f072cb23cf75
6
+ metadata.gz: 282c6ff55e6fd7c89ce5033ed5c286f0dc1e4465e44c75e0a05325473cd5e2975a4f180f6558cb8e2dbc3cc3787896a41029a7d91847a027f2011a5f4d90507f
7
+ data.tar.gz: 69a4c6a01d23a9540f21814967afa6e1f8cea10c6f055c31940d2beefdf72aa3bf5350c5f78d937bfd8cb3e58e8805c252fc8e0f246bf9c759b815234a4afb9d
@@ -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.request_uri
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
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Async
22
22
  module HTTP
23
- VERSION = "0.45.1"
23
+ VERSION = "0.45.2"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.45.1
4
+ version: 0.45.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams