excon 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of excon might be problematic. Click here for more details.

@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'excon'
16
- s.version = '0.3.1'
16
+ s.version = '0.3.2'
17
17
  s.date = '2010-12-09'
18
18
  s.rubyforge_project = 'excon'
19
19
 
@@ -13,7 +13,7 @@ require 'excon/response'
13
13
  module Excon
14
14
 
15
15
  unless const_defined?(:VERSION)
16
- VERSION = '0.3.1'
16
+ VERSION = '0.3.2'
17
17
  end
18
18
 
19
19
  unless const_defined?(:CHUNK_SIZE)
@@ -44,7 +44,7 @@ module Excon
44
44
  begin
45
45
  # connection has defaults, merge in new params to override
46
46
  params = @connection.merge(params)
47
- params[:headers] = @connection[:headers].merge(params[:headers])
47
+ params[:headers] = @connection[:headers].merge(params[:headers] || {})
48
48
 
49
49
  # if path is empty or doesn't start with '/', insert one
50
50
  unless params[:path][0..0] == '/'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 1
9
- version: 0.3.1
8
+ - 2
9
+ version: 0.3.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - geemus (Wesley Beary)