mirror of
https://github.com/lostisland/faraday.git
synced 2025-11-27 00:04:03 -05:00
fix an excon and rack error (headers should be strings, excon likes IPs)
This commit is contained in:
parent
43343e971f
commit
49e47274d5
@ -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
|
||||
warn "warning: test server not specified; skipping live server tests"
|
||||
|
||||
@ -23,7 +23,7 @@ module Faraday
|
||||
LIVE_SERVER = case ENV['LIVE']
|
||||
when /^http/ then ENV['LIVE']
|
||||
when nil then nil
|
||||
else 'http://localhost:4567'
|
||||
else 'http://127.0.0.1:4567'
|
||||
end
|
||||
|
||||
def test_default
|
||||
|
||||
@ -41,5 +41,5 @@ delete '/delete_with_json' do
|
||||
end
|
||||
|
||||
get '/multi' do
|
||||
[200, { 'Set-Cookie' => %w[ one two ] }, '']
|
||||
[200, { 'Set-Cookie' => 'one, two' }, '']
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user