forked from extern/httpie-cli
Fixed test
This commit is contained in:
parent
48a6d234cb
commit
b96eba336d
@ -11,7 +11,7 @@ def test_Host_header_overwrite(httpbin):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
host = 'httpbin.org'
|
host = 'httpbin.org'
|
||||||
url = httpbin.url + '/set?k2=v2&k1=v1'
|
url = httpbin.url + '/get'
|
||||||
r = http('--print=hH', url, 'host:{0}'.format(host))
|
r = http('--print=hH', url, 'host:{0}'.format(host))
|
||||||
assert HTTP_OK in r
|
assert HTTP_OK in r
|
||||||
assert r.lower().count('host:') == 1
|
assert r.lower().count('host:') == 1
|
||||||
|
Loading…
Reference in New Issue
Block a user