proxes 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/proxes/forwarder.rb +1 -1
- data/lib/proxes/request/search.rb +0 -1
- data/lib/proxes/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: 4785a97b631eeb52cc78cba8244574f786bceb47
|
4
|
+
data.tar.gz: 16c51704657319e518ab24bbecfd55cb3c91217d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7202970ccb85ff8780f269423115508545f31bb353c98d5b2cd672bff2ee0116a55536d52a1e698278fef43dfdc21eaa6f4b07c3269b0d9bb8286fe6b78e696
|
7
|
+
data.tar.gz: eb3141d296c473bcd49f49c941b5050d5e04ac4b5375dfe55b337284c2f9e6f748c824c724589fa49d0674ae64e5f79135d34e8b541a87914e8257bdcbb2d295
|
data/lib/proxes/forwarder.rb
CHANGED
@@ -15,7 +15,7 @@ module ProxES
|
|
15
15
|
full_path = source_request.fullpath == '' ? URI.parse(env['REQUEST_URI']).request_uri : source_request.fullpath
|
16
16
|
target_request = Net::HTTP.const_get(source_request.request_method.capitalize).new(full_path)
|
17
17
|
|
18
|
-
if
|
18
|
+
if source_request.body
|
19
19
|
target_request.body_stream = source_request.body
|
20
20
|
target_request.content_length = source_request.content_length.to_i
|
21
21
|
target_request.content_type = source_request.content_type if source_request.content_type
|
data/lib/proxes/version.rb
CHANGED