fix an excon and rack error (headers should be strings, excon likes IPs)

This commit is contained in:
rick 2011-12-28 14:05:23 -07:00
parent 43343e971f
commit 49e47274d5
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'helper')) require File.expand_path("../../helper", __FILE__)
if !Faraday::TestCase::LIVE_SERVER if !Faraday::TestCase::LIVE_SERVER
warn "warning: test server not specified; skipping live server tests" warn "warning: test server not specified; skipping live server tests"

View File

@ -23,7 +23,7 @@ module Faraday
LIVE_SERVER = case ENV['LIVE'] LIVE_SERVER = case ENV['LIVE']
when /^http/ then ENV['LIVE'] when /^http/ then ENV['LIVE']
when nil then nil when nil then nil
else 'http://localhost:4567' else 'http://127.0.0.1:4567'
end end
def test_default def test_default

View File

@ -41,5 +41,5 @@ delete '/delete_with_json' do
end end
get '/multi' do get '/multi' do
[200, { 'Set-Cookie' => %w[ one two ] }, ''] [200, { 'Set-Cookie' => 'one, two' }, '']
end end