rack-proxy 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/proxy.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d3d10314d397ff73d14421024f662ee818be5ce
|
4
|
+
data.tar.gz: ce5856ec13f3a36c7132fa24fbff7a56d2a9203c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 407afac47e2f903fb5c379b2281a771d5ef00620b2c4dbef55a6a6048dc8af839cd02b6f623b43a9234f07ed6988bf64586b65549fe477af364404721cc45590
|
7
|
+
data.tar.gz: 8845e00d5f435acd21bcf2702be29a2e49ed03723317bae6cdb16e2da77bfc0a5ea9ee7a9f92a51854898a83e67138e4a30250e0eea49e379956e31aad14f595
|
data/lib/rack/proxy.rb
CHANGED
@@ -5,7 +5,7 @@ module Rack
|
|
5
5
|
|
6
6
|
# Subclass and bring your own #rewrite_request and #rewrite_response
|
7
7
|
class Proxy
|
8
|
-
VERSION = "0.5.
|
8
|
+
VERSION = "0.5.1"
|
9
9
|
|
10
10
|
# @option opts [String, URI::HTTP] :backend Backend host to proxy requests to
|
11
11
|
def initialize(opts={})
|
@@ -72,7 +72,8 @@ module Rack
|
|
72
72
|
http.request(target_request)
|
73
73
|
end
|
74
74
|
|
75
|
-
|
75
|
+
headers = (target_response.respond_to?(:headers) && target_response.headers) || {}
|
76
|
+
triplet = [target_response.code, headers, target_response.body]
|
76
77
|
end
|
77
78
|
|
78
79
|
triplet
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-proxy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jacek Becela
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|