mirror of
https://github.com/lostisland/faraday.git
synced 2025-11-29 00:03:35 -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
|
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"
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user