mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-06 00:02:08 -04:00
changed http based tests, added #scheme, using it to correctly set no proxy domain
This commit is contained in:
parent
8652d1978f
commit
df26c97e38
@ -100,7 +100,7 @@ class HTTPTest < Minitest::Test
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def origin(orig = httpbin)
|
def scheme
|
||||||
"http://#{orig}"
|
"http://"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -180,7 +180,7 @@ class HTTPSTest < Minitest::Test
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def origin(orig = httpbin)
|
def scheme
|
||||||
"https://#{orig}"
|
"https://"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -23,6 +23,10 @@ module HTTPHelpers
|
|||||||
end
|
end
|
||||||
|
|
||||||
def httpbin_no_proxy
|
def httpbin_no_proxy
|
||||||
URI(ENV.fetch("HTTPBIN_NO_PROXY_HOST", "httpbin.org"))
|
URI(ENV.fetch("HTTPBIN_NO_PROXY_HOST", "#{scheme}httpbin.org"))
|
||||||
|
end
|
||||||
|
|
||||||
|
def origin(orig = httpbin)
|
||||||
|
"#{scheme}#{orig}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user