rack-proxy 0.5.4 → 0.5.5
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 +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: 40d0c3918840c4f9b90b67427d4a8c478955356a
|
4
|
+
data.tar.gz: 453109213e345d23df63360acaf51d11b82546b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9b70f64ae873ffc4e364ad64923d2b8fdb9895cde962e6109e73296b5f331cedabf6c0ed241da7cd4249cd7f7738e3036e0b5d9cf75e92ea08e9cef8d15ad73
|
7
|
+
data.tar.gz: 2a2617e59c487bf5f834bb0c328a2156fa54e020ce62e116a8e5bc5c52a17d8f5dfec18a03c3432fbab6fdb0ba27f28d74969a298380ce39d95ae15d2b6827b1
|
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.5"
|
9
9
|
|
10
10
|
# @option opts [String, URI::HTTP] :backend Backend host to proxy requests to
|
11
11
|
def initialize(opts={})
|
@@ -59,7 +59,7 @@ module Rack
|
|
59
59
|
target_response = HttpStreamingResponse.new(target_request, backend.host, backend.port)
|
60
60
|
target_response.use_ssl = backend.scheme == "https"
|
61
61
|
else
|
62
|
-
target_response = Net::HTTP.start(backend.host, backend.port) do |http|
|
62
|
+
target_response = Net::HTTP.start(backend.host, backend.port, :use_ssl => backend.scheme == "https") do |http|
|
63
63
|
http.request(target_request)
|
64
64
|
end
|
65
65
|
end
|
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.5
|
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-10-
|
11
|
+
date: 2013-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|