http_streaming_client 0.9.6 → 0.9.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb4dab59e5e6a3ee9a8907bc6a0f41a46bea2d7f
4
- data.tar.gz: c49aa3e36853f543b3547dfdd69abc1b1bf38b2b
3
+ metadata.gz: 7189a6ab6550219173fc77f1860b797ba3464936
4
+ data.tar.gz: 3f9739776d6a097ffd9d78a9b84e16e1bd848cf7
5
5
  SHA512:
6
- metadata.gz: 9836708e4ee5dfb893885ea5567ed496f46f033f33db94dc85f40371644c17344c5b6c33496908cd7c24eadea15fcd1cf76d995bf74d70f9800cd6754d85cf72
7
- data.tar.gz: 694cdd6a617cdd23ff9a61a61ef15e20e97e832c43266986f8d9caddddcae888e0780a3d960b834fbbc3e37fd6d0899fe45858c968fbd9317c23c7f5825121e3
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 301 response" if location.nil?
214
- logger.warn "Received HTTP 301 redirect to #{location}, following..."
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
@@ -28,5 +28,5 @@
28
28
  ###########################################################################
29
29
 
30
30
  module HttpStreamingClient
31
- VERSION = "0.9.6"
31
+ VERSION = "0.9.7"
32
32
  end
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.6
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: 2014-07-21 00:00:00.000000000 Z
11
+ date: 2015-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler