rack-proxy 0.5.14 → 0.5.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/Readme +2 -0
- data/lib/rack/proxy.rb +2 -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: 8bc9abc2d2f38fb66eac5f4096f4a4d3ed87282e
|
4
|
+
data.tar.gz: 63492ae53d63d6b0b71940aac7c4b2ff07f905ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c938ea6e962b614db7300344705412d6c2844d5395f0a4a6d3cab46b4005a5c0e497a7fd55a3d1fae3d34f438ed71bb608b3f05e01388132b3fd85d07bc975a5
|
7
|
+
data.tar.gz: b1ac160faa601d5ba5479df46ae41276c543a4e2378286a28d9b82480ad597c89232b3f8653555c4a7b7e3150f4211b440acd5575e36c436733ca2f085231728
|
data/Gemfile.lock
CHANGED
data/Readme
CHANGED
@@ -41,3 +41,5 @@ The same can be achieved for *all* requests going through the `Rack::Proxy` inst
|
|
41
41
|
See tests for more examples.
|
42
42
|
|
43
43
|
WARNING: Doesn't work with fakeweb/webmock. Both libraries monkey-patch net/http code.
|
44
|
+
|
45
|
+
TODO: Make the docs up to date with the current use case for this code: everything except streaming which involved a rather ugly monkey patch and only worked in 1.8, but does not work now.
|
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.15"
|
9
9
|
|
10
10
|
class << self
|
11
11
|
def extract_http_request_headers(env)
|
@@ -85,7 +85,7 @@ module Rack
|
|
85
85
|
target_request.body_stream.rewind
|
86
86
|
end
|
87
87
|
|
88
|
-
backend = @backend || source_request
|
88
|
+
backend = env.delete('rack.backend') || @backend || source_request
|
89
89
|
use_ssl = backend.scheme == "https"
|
90
90
|
ssl_verify_none = (env.delete('rack.ssl_verify_none') || @ssl_verify_none) == true
|
91
91
|
read_timeout = env.delete('http.read_timeout') || @read_timeout
|
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.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jacek Becela
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|