http_streaming_client 0.9.6 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/http_streaming_client/client.rb +4 -4
- data/lib/http_streaming_client/version.rb +1 -1
- 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: 7189a6ab6550219173fc77f1860b797ba3464936
|
4
|
+
data.tar.gz: 3f9739776d6a097ffd9d78a9b84e16e1bd848cf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa69f597ca4b1285baa68db9f86b16fdf62141fa14157a9c09a80f0ef27486a23f58a655f154d4c29c3e2bb05ad2261899a9a384202a288a80332a692901ce44
|
7
|
+
data.tar.gz: 94f82b7a78be5c054cd2bc395521feed1b4c600544c1ad2e7b8ae16cb9b65777d6e430ec789c1446a58ab66b7a0fa9afe03757b1437815b899f09666b7e2a8f8
|
@@ -208,10 +208,10 @@ module HttpStreamingClient
|
|
208
208
|
|
209
209
|
logger.debug "response headers:#{response_head[:headers]}"
|
210
210
|
|
211
|
-
if response_head[:code] == 301 then
|
211
|
+
if response_head[:code] == 301 or response_head[:code] == 302 then
|
212
212
|
location = response_head[:headers]["Location"]
|
213
|
-
raise InvalidRedirect, "Unable to find Location header for HTTP
|
214
|
-
logger.warn "Received HTTP
|
213
|
+
raise InvalidRedirect, "Unable to find Location header for HTTP #{response_head[:code]} response" if location.nil?
|
214
|
+
logger.warn "Received HTTP #{response_head[:code]} redirect to #{location}, following..."
|
215
215
|
socket.close if !socket.nil? and !socket.closed?
|
216
216
|
opts.delete(:socket)
|
217
217
|
return request(method, location, opts, &block)
|
@@ -426,7 +426,7 @@ module HttpStreamingClient
|
|
426
426
|
|
427
427
|
if uri.scheme.eql? "https"
|
428
428
|
ctx = OpenSSL::SSL::SSLContext.new
|
429
|
-
ctx.set_params(verify_mode: OpenSSL::SSL::VERIFY_PEER)
|
429
|
+
#ctx.set_params(verify_mode: OpenSSL::SSL::VERIFY_PEER)
|
430
430
|
@socket = OpenSSL::SSL::SSLSocket.new(@socket, ctx).tap do |socket|
|
431
431
|
socket.sync_close = true
|
432
432
|
socket.connect
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http_streaming_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Tompkins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|