emmy-http-client 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/emmy_http/client/client.rb +5 -1
- data/lib/emmy_http/client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36d8e52686910e9f1427b3cd47083c931079716a
|
4
|
+
data.tar.gz: c2a4af30f7b92139ebba6118c1dbca71390767bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e9271abd4826fa4d9bdac1d279acd80c893596b98a342c8221a984bc13057ff9fe507fd217f4d09105cb43c580f7e0b4691dab4e3cdddfbbc11bcdf503ee9eb
|
7
|
+
data.tar.gz: 85552e081cd96450932ae262efcd7311293033dc85c16b413d3ee69ab09b8e3f693d73fdd1d4b25bc61988cb4854ab0ea5b8330bca51cd8c90ac614b40210e92
|
@@ -115,7 +115,11 @@ module EmmyHttp
|
|
115
115
|
raise 'relative url' if @url.relative?
|
116
116
|
|
117
117
|
@url.normalize!
|
118
|
-
|
118
|
+
|
119
|
+
if path = request.real_path
|
120
|
+
raise 'path is not relative' unless path.relative?
|
121
|
+
@url += path
|
122
|
+
end
|
119
123
|
@url.query = request.query.is_a?(Hash) ? Encoders.query(request.query) : request.query.to_s if request.query
|
120
124
|
end
|
121
125
|
|