rack-proxy 0.5.14 → 0.5.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/Readme +2 -0
  4. data/lib/rack/proxy.rb +2 -2
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ce5d567ab16788c94ed838096b23ab448a15afb
4
- data.tar.gz: 7a286bd289c7225cf311e26bae4882fdbb88255a
3
+ metadata.gz: 8bc9abc2d2f38fb66eac5f4096f4a4d3ed87282e
4
+ data.tar.gz: 63492ae53d63d6b0b71940aac7c4b2ff07f905ed
5
5
  SHA512:
6
- metadata.gz: e9db5340034180f70ae24ba40618372f57f5eeb7db1445d3dbc6e5543058f38c5a7f0d90f2ce233861bce3cb55731325c164d6d93b0d5e559b828d5452ea163e
7
- data.tar.gz: 5e06019e897591b0b1da6b750a44e3b52a58dc7f2b70ed8e40bb59d5240e60f08f502baa00b5f05b09dc276826b98660d322554e77cbd909c8283851b67cff32
6
+ metadata.gz: c938ea6e962b614db7300344705412d6c2844d5395f0a4a6d3cab46b4005a5c0e497a7fd55a3d1fae3d34f438ed71bb608b3f05e01388132b3fd85d07bc975a5
7
+ data.tar.gz: b1ac160faa601d5ba5479df46ae41276c543a4e2378286a28d9b82480ad597c89232b3f8653555c4a7b7e3150f4211b440acd5575e36c436733ca2f085231728
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rack-proxy (0.5.13)
4
+ rack-proxy (0.5.15)
5
5
  rack
6
6
 
7
7
  GEM
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.14"
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.14
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-04-30 00:00:00.000000000 Z
11
+ date: 2014-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack