faraday 0.2.2 → 0.2.3

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{faraday}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["rick"]
@@ -63,7 +63,7 @@ module Faraday
63
63
  { :method => request_method,
64
64
  :body => body,
65
65
  :url => connection.build_url(path, env_params),
66
- :request_headers => env_headers,
66
+ :request_headers => env_headers.update(headers),
67
67
  :parallel_manager => connection.parallel_manager,
68
68
  :response => Response.new}
69
69
  end
@@ -3,7 +3,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))
3
3
  class TestEnv < Faraday::TestCase
4
4
  describe "Request#create" do
5
5
  before :all do
6
- @conn = Faraday::Connection.new :url => 'http://sushi.com/api'
6
+ @conn = Faraday::Connection.new :url => 'http://sushi.com/api', :headers => {'Mime-Version' => '1.0'}
7
7
  @input = {
8
8
  :body => 'abc',
9
9
  :headers => {'Server' => 'Faraday'}}
@@ -25,7 +25,7 @@ class TestEnv < Faraday::TestCase
25
25
 
26
26
  it "stores headers in :headers" do
27
27
  assert_kind_of Rack::Utils::HeaderHash, @env[:request_headers]
28
- assert_equal @input[:headers], @env[:request_headers]
28
+ assert_equal @input[:headers].merge('Mime-Version' => '1.0'), @env[:request_headers]
29
29
  end
30
30
 
31
31
  it "stores body in :body" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - rick