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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rack/proxy.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 003eb4cd56fdf61d2423fca266743d7e435b6545
4
- data.tar.gz: 6d5c3407a71872908d73339a9ad604c84552eb13
3
+ metadata.gz: 40d0c3918840c4f9b90b67427d4a8c478955356a
4
+ data.tar.gz: 453109213e345d23df63360acaf51d11b82546b8
5
5
  SHA512:
6
- metadata.gz: 18f0efc204907bf79f1bf8300e84b62d0bab0f0e131d9b2c4b4cb6ba7cfdee6db341922e00949b69b2c955a8bd54a3696fb6a3c74edf04012dbcb3790946466b
7
- data.tar.gz: c547b4d4995c634b7fbb0d2bbcfcab39236a4357012142e5ddb1a3558e9c38336ddb0e8d37e70130650d833e5128344fdae0d86b4581948c8deec8958a725d76
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.4"
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
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-04 00:00:00.000000000 Z
11
+ date: 2013-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack