mirror of
https://github.com/httpie/cli.git
synced 2024-11-22 07:43:20 +01:00
Update URLs
This commit is contained in:
parent
57b1baf1d1
commit
2afdc958c6
@ -8,7 +8,7 @@ HTTPie authors
|
|||||||
Patches and ideas
|
Patches and ideas
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
`Complete list of contributors on GitHub <https://github.com/jakubroztocil/httpie/graphs/contributors>`_
|
`Complete list of contributors on GitHub <https://github.com/httpie/httpie/graphs/contributors>`_
|
||||||
|
|
||||||
* `Cláudia T. Delgado <https://github.com/claudiatd>`_ (logo)
|
* `Cláudia T. Delgado <https://github.com/claudiatd>`_ (logo)
|
||||||
* `Hank Gay <https://github.com/gthank>`_
|
* `Hank Gay <https://github.com/gthank>`_
|
||||||
|
112
CHANGELOG.rst
112
CHANGELOG.rst
@ -426,60 +426,60 @@ This project adheres to `Semantic Versioning <https://semver.org/>`_.
|
|||||||
* Initial public release
|
* Initial public release
|
||||||
|
|
||||||
|
|
||||||
.. _`0.1.0`: https://github.com/jakubroztocil/httpie/commit/b966efa
|
.. _`0.1.0`: https://github.com/httpie/httpie/commit/b966efa
|
||||||
.. _0.1.4: https://github.com/jakubroztocil/httpie/compare/b966efa...0.1.4
|
.. _0.1.4: https://github.com/httpie/httpie/compare/b966efa...0.1.4
|
||||||
.. _0.1.5: https://github.com/jakubroztocil/httpie/compare/0.1.4...0.1.5
|
.. _0.1.5: https://github.com/httpie/httpie/compare/0.1.4...0.1.5
|
||||||
.. _0.1.6: https://github.com/jakubroztocil/httpie/compare/0.1.5...0.1.6
|
.. _0.1.6: https://github.com/httpie/httpie/compare/0.1.5...0.1.6
|
||||||
.. _0.2.0: https://github.com/jakubroztocil/httpie/compare/0.1.6...0.2.0
|
.. _0.2.0: https://github.com/httpie/httpie/compare/0.1.6...0.2.0
|
||||||
.. _0.2.1: https://github.com/jakubroztocil/httpie/compare/0.2.0...0.2.1
|
.. _0.2.1: https://github.com/httpie/httpie/compare/0.2.0...0.2.1
|
||||||
.. _0.2.2: https://github.com/jakubroztocil/httpie/compare/0.2.1...0.2.2
|
.. _0.2.2: https://github.com/httpie/httpie/compare/0.2.1...0.2.2
|
||||||
.. _0.2.5: https://github.com/jakubroztocil/httpie/compare/0.2.2...0.2.5
|
.. _0.2.5: https://github.com/httpie/httpie/compare/0.2.2...0.2.5
|
||||||
.. _0.2.6: https://github.com/jakubroztocil/httpie/compare/0.2.5...0.2.6
|
.. _0.2.6: https://github.com/httpie/httpie/compare/0.2.5...0.2.6
|
||||||
.. _0.2.7: https://github.com/jakubroztocil/httpie/compare/0.2.5...0.2.7
|
.. _0.2.7: https://github.com/httpie/httpie/compare/0.2.5...0.2.7
|
||||||
.. _0.3.0: https://github.com/jakubroztocil/httpie/compare/0.2.7...0.3.0
|
.. _0.3.0: https://github.com/httpie/httpie/compare/0.2.7...0.3.0
|
||||||
.. _0.4.0: https://github.com/jakubroztocil/httpie/compare/0.3.0...0.4.0
|
.. _0.4.0: https://github.com/httpie/httpie/compare/0.3.0...0.4.0
|
||||||
.. _0.4.1: https://github.com/jakubroztocil/httpie/compare/0.4.0...0.4.1
|
.. _0.4.1: https://github.com/httpie/httpie/compare/0.4.0...0.4.1
|
||||||
.. _0.5.0: https://github.com/jakubroztocil/httpie/compare/0.4.1...0.5.0
|
.. _0.5.0: https://github.com/httpie/httpie/compare/0.4.1...0.5.0
|
||||||
.. _0.5.1: https://github.com/jakubroztocil/httpie/compare/0.5.0...0.5.1
|
.. _0.5.1: https://github.com/httpie/httpie/compare/0.5.0...0.5.1
|
||||||
.. _0.6.0: https://github.com/jakubroztocil/httpie/compare/0.5.1...0.6.0
|
.. _0.6.0: https://github.com/httpie/httpie/compare/0.5.1...0.6.0
|
||||||
.. _0.7.1: https://github.com/jakubroztocil/httpie/compare/0.6.0...0.7.1
|
.. _0.7.1: https://github.com/httpie/httpie/compare/0.6.0...0.7.1
|
||||||
.. _0.8.0: https://github.com/jakubroztocil/httpie/compare/0.7.1...0.8.0
|
.. _0.8.0: https://github.com/httpie/httpie/compare/0.7.1...0.8.0
|
||||||
.. _0.9.0: https://github.com/jakubroztocil/httpie/compare/0.8.0...0.9.0
|
.. _0.9.0: https://github.com/httpie/httpie/compare/0.8.0...0.9.0
|
||||||
.. _0.9.1: https://github.com/jakubroztocil/httpie/compare/0.9.0...0.9.1
|
.. _0.9.1: https://github.com/httpie/httpie/compare/0.9.0...0.9.1
|
||||||
.. _0.9.2: https://github.com/jakubroztocil/httpie/compare/0.9.1...0.9.2
|
.. _0.9.2: https://github.com/httpie/httpie/compare/0.9.1...0.9.2
|
||||||
.. _0.9.3: https://github.com/jakubroztocil/httpie/compare/0.9.2...0.9.3
|
.. _0.9.3: https://github.com/httpie/httpie/compare/0.9.2...0.9.3
|
||||||
.. _0.9.4: https://github.com/jakubroztocil/httpie/compare/0.9.3...0.9.4
|
.. _0.9.4: https://github.com/httpie/httpie/compare/0.9.3...0.9.4
|
||||||
.. _0.9.6: https://github.com/jakubroztocil/httpie/compare/0.9.4...0.9.6
|
.. _0.9.6: https://github.com/httpie/httpie/compare/0.9.4...0.9.6
|
||||||
.. _0.9.8: https://github.com/jakubroztocil/httpie/compare/0.9.6...0.9.8
|
.. _0.9.8: https://github.com/httpie/httpie/compare/0.9.6...0.9.8
|
||||||
.. _0.9.9: https://github.com/jakubroztocil/httpie/compare/0.9.8...0.9.9
|
.. _0.9.9: https://github.com/httpie/httpie/compare/0.9.8...0.9.9
|
||||||
.. _1.0.0: https://github.com/jakubroztocil/httpie/compare/0.9.9...1.0.0
|
.. _1.0.0: https://github.com/httpie/httpie/compare/0.9.9...1.0.0
|
||||||
.. _1.0.1: https://github.com/jakubroztocil/httpie/compare/1.0.0...1.0.1
|
.. _1.0.1: https://github.com/httpie/httpie/compare/1.0.0...1.0.1
|
||||||
.. _1.0.2: https://github.com/jakubroztocil/httpie/compare/1.0.1...1.0.2
|
.. _1.0.2: https://github.com/httpie/httpie/compare/1.0.1...1.0.2
|
||||||
.. _1.0.3: https://github.com/jakubroztocil/httpie/compare/1.0.2...1.0.3
|
.. _1.0.3: https://github.com/httpie/httpie/compare/1.0.2...1.0.3
|
||||||
.. _2.0.0: https://github.com/jakubroztocil/httpie/compare/1.0.3...2.0.0
|
.. _2.0.0: https://github.com/httpie/httpie/compare/1.0.3...2.0.0
|
||||||
.. _2.1.0: https://github.com/jakubroztocil/httpie/compare/2.0.0...2.1.0
|
.. _2.1.0: https://github.com/httpie/httpie/compare/2.0.0...2.1.0
|
||||||
.. _2.2.0: https://github.com/jakubroztocil/httpie/compare/2.1.0...2.2.0
|
.. _2.2.0: https://github.com/httpie/httpie/compare/2.1.0...2.2.0
|
||||||
.. _2.3.0: https://github.com/jakubroztocil/httpie/compare/2.2.0...2.3.0
|
.. _2.3.0: https://github.com/httpie/httpie/compare/2.2.0...2.3.0
|
||||||
.. _2.4.0-dev: https://github.com/jakubroztocil/httpie/compare/2.3.0...master
|
.. _2.4.0-dev: https://github.com/httpie/httpie/compare/2.3.0...master
|
||||||
|
|
||||||
.. _#128: https://github.com/jakubroztocil/httpie/issues/128
|
.. _#128: https://github.com/httpie/httpie/issues/128
|
||||||
.. _#201: https://github.com/jakubroztocil/httpie/issues/201
|
.. _#201: https://github.com/httpie/httpie/issues/201
|
||||||
.. _#488: https://github.com/jakubroztocil/httpie/issues/488
|
.. _#488: https://github.com/httpie/httpie/issues/488
|
||||||
.. _#668: https://github.com/jakubroztocil/httpie/issues/668
|
.. _#668: https://github.com/httpie/httpie/issues/668
|
||||||
.. _#684: https://github.com/jakubroztocil/httpie/issues/684
|
.. _#684: https://github.com/httpie/httpie/issues/684
|
||||||
.. _#718: https://github.com/jakubroztocil/httpie/issues/718
|
.. _#718: https://github.com/httpie/httpie/issues/718
|
||||||
.. _#719: https://github.com/jakubroztocil/httpie/issues/719
|
.. _#719: https://github.com/httpie/httpie/issues/719
|
||||||
.. _#753: https://github.com/jakubroztocil/httpie/issues/753
|
.. _#753: https://github.com/httpie/httpie/issues/753
|
||||||
.. _#840: https://github.com/jakubroztocil/httpie/issues/840
|
.. _#840: https://github.com/httpie/httpie/issues/840
|
||||||
.. _#853: https://github.com/jakubroztocil/httpie/issues/853
|
.. _#853: https://github.com/httpie/httpie/issues/853
|
||||||
.. _#852: https://github.com/jakubroztocil/httpie/issues/852
|
.. _#852: https://github.com/httpie/httpie/issues/852
|
||||||
.. _#870: https://github.com/jakubroztocil/httpie/issues/870
|
.. _#870: https://github.com/httpie/httpie/issues/870
|
||||||
.. _#895: https://github.com/jakubroztocil/httpie/issues/895
|
.. _#895: https://github.com/httpie/httpie/issues/895
|
||||||
.. _#903: https://github.com/jakubroztocil/httpie/issues/903
|
.. _#903: https://github.com/httpie/httpie/issues/903
|
||||||
.. _#920: https://github.com/jakubroztocil/httpie/issues/920
|
.. _#920: https://github.com/httpie/httpie/issues/920
|
||||||
.. _#904: https://github.com/jakubroztocil/httpie/issues/904
|
.. _#904: https://github.com/httpie/httpie/issues/904
|
||||||
.. _#925: https://github.com/jakubroztocil/httpie/issues/925
|
.. _#925: https://github.com/httpie/httpie/issues/925
|
||||||
.. _#932: https://github.com/jakubroztocil/httpie/issues/932
|
.. _#932: https://github.com/httpie/httpie/issues/932
|
||||||
.. _#934: https://github.com/jakubroztocil/httpie/issues/934
|
.. _#934: https://github.com/httpie/httpie/issues/934
|
||||||
.. _#943: https://github.com/jakubroztocil/httpie/issues/943
|
.. _#943: https://github.com/httpie/httpie/issues/943
|
||||||
.. _#963: https://github.com/jakubroztocil/httpie/issues/963
|
.. _#963: https://github.com/httpie/httpie/issues/963
|
||||||
|
@ -53,7 +53,7 @@ Development Environment
|
|||||||
Getting the code
|
Getting the code
|
||||||
****************
|
****************
|
||||||
|
|
||||||
Go to https://github.com/jakubroztocil/httpie and fork the project repository.
|
Go to https://github.com/httpie/httpie and fork the project repository.
|
||||||
|
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
@ -132,7 +132,7 @@ Testing & CI
|
|||||||
Please add tests for any new features and bug fixes.
|
Please add tests for any new features and bug fixes.
|
||||||
|
|
||||||
When you open a pull request,
|
When you open a pull request,
|
||||||
`GitHub Actions <https://github.com/jakubroztocil/httpie/actions>`_
|
`GitHub Actions <https://github.com/httpie/httpie/actions>`_
|
||||||
will automatically run HTTPie’s `test suite`_ against your code
|
will automatically run HTTPie’s `test suite`_ against your code
|
||||||
so please make sure all checks pass.
|
so please make sure all checks pass.
|
||||||
|
|
||||||
@ -230,10 +230,10 @@ Use ``pytest`` to run tests locally with an active virtual environment:
|
|||||||
Finally, feel free to add yourself to `AUTHORS`_!
|
Finally, feel free to add yourself to `AUTHORS`_!
|
||||||
|
|
||||||
|
|
||||||
.. _existing issues: https://github.com/jakubroztocil/httpie/issues?state=open
|
.. _existing issues: https://github.com/httpie/httpie/issues?state=open
|
||||||
.. _AUTHORS: https://github.com/jakubroztocil/httpie/blob/master/AUTHORS.rst
|
.. _AUTHORS: https://github.com/httpie/httpie/blob/master/AUTHORS.rst
|
||||||
.. _Makefile: https://github.com/jakubroztocil/httpie/blob/master/Makefile
|
.. _Makefile: https://github.com/httpie/httpie/blob/master/Makefile
|
||||||
.. _venv: https://docs.python.org/3/library/venv.html
|
.. _venv: https://docs.python.org/3/library/venv.html
|
||||||
.. _pytest: https://pytest.org/
|
.. _pytest: https://pytest.org/
|
||||||
.. _Style Guide for Python Code: https://python.org/dev/peps/pep-0008/
|
.. _Style Guide for Python Code: https://python.org/dev/peps/pep-0008/
|
||||||
.. _test suite: https://github.com/jakubroztocil/httpie/tree/master/tests
|
.. _test suite: https://github.com/httpie/httpie/tree/master/tests
|
||||||
|
@ -3,5 +3,5 @@ include README.rst
|
|||||||
include CHANGELOG.rst
|
include CHANGELOG.rst
|
||||||
include AUTHORS.rst
|
include AUTHORS.rst
|
||||||
|
|
||||||
# <https://github.com/jakubroztocil/httpie/issues/182>
|
# <https://github.com/httpie/httpie/issues/182>
|
||||||
recursive-include tests/ *
|
recursive-include tests/ *
|
||||||
|
@ -37,7 +37,7 @@ parser = HTTPieArgumentParser(
|
|||||||
|
|
||||||
Suggestions and bug reports are greatly appreciated:
|
Suggestions and bug reports are greatly appreciated:
|
||||||
|
|
||||||
https://github.com/jakubroztocil/httpie/issues
|
https://github.com/httpie/httpie/issues
|
||||||
|
|
||||||
'''),
|
'''),
|
||||||
)
|
)
|
||||||
|
@ -134,7 +134,7 @@ def collect_messages(
|
|||||||
# noinspection PyProtectedMember
|
# noinspection PyProtectedMember
|
||||||
@contextmanager
|
@contextmanager
|
||||||
def max_headers(limit):
|
def max_headers(limit):
|
||||||
# <https://github.com/jakubroztocil/httpie/issues/802>
|
# <https://github.com/httpie/httpie/issues/802>
|
||||||
# noinspection PyUnresolvedReferences
|
# noinspection PyUnresolvedReferences
|
||||||
orig = http.client._MAXHEADERS
|
orig = http.client._MAXHEADERS
|
||||||
http.client._MAXHEADERS = limit or float('Inf')
|
http.client._MAXHEADERS = limit or float('Inf')
|
||||||
@ -188,7 +188,7 @@ def finalize_headers(headers: RequestHeadersDict) -> RequestHeadersDict:
|
|||||||
# Also, requests raises `InvalidHeader` for leading spaces.
|
# Also, requests raises `InvalidHeader` for leading spaces.
|
||||||
value = value.strip()
|
value = value.strip()
|
||||||
if isinstance(value, str):
|
if isinstance(value, str):
|
||||||
# See <https://github.com/jakubroztocil/httpie/issues/212>
|
# See <https://github.com/httpie/httpie/issues/212>
|
||||||
value = value.encode('utf8')
|
value = value.encode('utf8')
|
||||||
final_headers[name] = value
|
final_headers[name] = value
|
||||||
return final_headers
|
return final_headers
|
||||||
@ -304,7 +304,7 @@ def ensure_path_as_is(orig_url: str, prepped_url: str) -> str:
|
|||||||
untouched because other (welcome) processing on the URL might have
|
untouched because other (welcome) processing on the URL might have
|
||||||
taken place.
|
taken place.
|
||||||
|
|
||||||
<https://github.com/jakubroztocil/httpie/issues/895>
|
<https://github.com/httpie/httpie/issues/895>
|
||||||
|
|
||||||
|
|
||||||
<https://ec.haxx.se/http/http-basics#path-as-is>
|
<https://ec.haxx.se/http/http-basics#path-as-is>
|
||||||
|
@ -247,7 +247,7 @@ class Downloader:
|
|||||||
assert not self.status.time_started
|
assert not self.status.time_started
|
||||||
|
|
||||||
# FIXME: some servers still might sent Content-Encoding: gzip
|
# FIXME: some servers still might sent Content-Encoding: gzip
|
||||||
# <https://github.com/jakubroztocil/httpie/issues/423>
|
# <https://github.com/httpie/httpie/issues/423>
|
||||||
try:
|
try:
|
||||||
total_size = int(final_response.headers['Content-Length'])
|
total_size = int(final_response.headers['Content-Length'])
|
||||||
except (KeyError, ValueError, TypeError):
|
except (KeyError, ValueError, TypeError):
|
||||||
|
@ -19,7 +19,7 @@ class HTTPBasicAuth(requests.auth.HTTPBasicAuth):
|
|||||||
"""
|
"""
|
||||||
Override username/password serialization to allow unicode.
|
Override username/password serialization to allow unicode.
|
||||||
|
|
||||||
See https://github.com/jakubroztocil/httpie/issues/212
|
See https://github.com/httpie/httpie/issues/212
|
||||||
|
|
||||||
"""
|
"""
|
||||||
# noinspection PyTypeChecker
|
# noinspection PyTypeChecker
|
||||||
|
@ -5,4 +5,4 @@ HTTPie Test Suite
|
|||||||
Please see `CONTRIBUTING`_.
|
Please see `CONTRIBUTING`_.
|
||||||
|
|
||||||
|
|
||||||
.. _CONTRIBUTING: https://github.com/jakubroztocil/httpie/blob/master/CONTRIBUTING.rst
|
.. _CONTRIBUTING: https://github.com/httpie/httpie/blob/master/CONTRIBUTING.rst
|
||||||
|
@ -58,7 +58,7 @@ def test_credentials_in_url_auth_flag_has_priority(httpbin_both):
|
|||||||
])
|
])
|
||||||
def test_only_username_in_url(url):
|
def test_only_username_in_url(url):
|
||||||
"""
|
"""
|
||||||
https://github.com/jakubroztocil/httpie/issues/242
|
https://github.com/httpie/httpie/issues/242
|
||||||
|
|
||||||
"""
|
"""
|
||||||
args = httpie.cli.definition.parser.parse_args(args=[url], env=MockEnvironment())
|
args = httpie.cli.definition.parser.parse_args(args=[url], env=MockEnvironment())
|
||||||
|
@ -11,7 +11,7 @@ from fixtures import FILE_PATH
|
|||||||
|
|
||||||
def test_default_headers_case_insensitive(httpbin):
|
def test_default_headers_case_insensitive(httpbin):
|
||||||
"""
|
"""
|
||||||
<https://github.com/jakubroztocil/httpie/issues/644>
|
<https://github.com/httpie/httpie/issues/644>
|
||||||
"""
|
"""
|
||||||
r = http(
|
r = http(
|
||||||
'--debug',
|
'--debug',
|
||||||
@ -63,7 +63,7 @@ class TestAutoContentTypeAndAcceptHeaders:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def test_GET_no_data_no_auto_headers(self, httpbin):
|
def test_GET_no_data_no_auto_headers(self, httpbin):
|
||||||
# https://github.com/jakubroztocil/httpie/issues/62
|
# https://github.com/httpie/httpie/issues/62
|
||||||
r = http('GET', httpbin.url + '/headers')
|
r = http('GET', httpbin.url + '/headers')
|
||||||
assert HTTP_OK in r
|
assert HTTP_OK in r
|
||||||
assert r.json['headers']['Accept'] == '*/*'
|
assert r.json['headers']['Accept'] == '*/*'
|
||||||
@ -94,7 +94,7 @@ class TestAutoContentTypeAndAcceptHeaders:
|
|||||||
assert HTTP_OK in r
|
assert HTTP_OK in r
|
||||||
assert r.json['headers']['Accept'] == JSON_ACCEPT
|
assert r.json['headers']['Accept'] == JSON_ACCEPT
|
||||||
# Make sure Content-Type gets set even with no data.
|
# Make sure Content-Type gets set even with no data.
|
||||||
# https://github.com/jakubroztocil/httpie/issues/137
|
# https://github.com/httpie/httpie/issues/137
|
||||||
assert 'application/json' in r.json['headers']['Content-Type']
|
assert 'application/json' in r.json['headers']['Content-Type']
|
||||||
|
|
||||||
def test_GET_explicit_JSON_explicit_headers(self, httpbin):
|
def test_GET_explicit_JSON_explicit_headers(self, httpbin):
|
||||||
|
@ -39,7 +39,7 @@ def test_debug():
|
|||||||
def test_help():
|
def test_help():
|
||||||
r = http('--help', tolerate_error_exit_status=True)
|
r = http('--help', tolerate_error_exit_status=True)
|
||||||
assert r.exit_status == ExitStatus.SUCCESS
|
assert r.exit_status == ExitStatus.SUCCESS
|
||||||
assert 'https://github.com/jakubroztocil/httpie/issues' in r
|
assert 'https://github.com/httpie/httpie/issues' in r
|
||||||
|
|
||||||
|
|
||||||
def test_version():
|
def test_version():
|
||||||
@ -121,7 +121,7 @@ def test_POST_file(httpbin_both):
|
|||||||
|
|
||||||
def test_form_POST_file_redirected_stdin(httpbin):
|
def test_form_POST_file_redirected_stdin(httpbin):
|
||||||
"""
|
"""
|
||||||
<https://github.com/jakubroztocil/httpie/issues/840>
|
<https://github.com/httpie/httpie/issues/840>
|
||||||
|
|
||||||
"""
|
"""
|
||||||
with open(FILE_PATH) as f:
|
with open(FILE_PATH) as f:
|
||||||
|
@ -127,7 +127,7 @@ class TestVerboseFlag:
|
|||||||
assert r.count('__test__') == 2
|
assert r.count('__test__') == 2
|
||||||
|
|
||||||
def test_verbose_form(self, httpbin):
|
def test_verbose_form(self, httpbin):
|
||||||
# https://github.com/jakubroztocil/httpie/issues/53
|
# https://github.com/httpie/httpie/issues/53
|
||||||
r = http('--verbose', '--form', 'POST', httpbin.url + '/post',
|
r = http('--verbose', '--form', 'POST', httpbin.url + '/post',
|
||||||
'A=B', 'C=D')
|
'A=B', 'C=D')
|
||||||
assert HTTP_OK in r
|
assert HTTP_OK in r
|
||||||
|
@ -7,7 +7,7 @@ from utils import HTTP_OK, MockEnvironment, http
|
|||||||
|
|
||||||
def test_Host_header_overwrite(httpbin):
|
def test_Host_header_overwrite(httpbin):
|
||||||
"""
|
"""
|
||||||
https://github.com/jakubroztocil/httpie/issues/235
|
https://github.com/httpie/httpie/issues/235
|
||||||
|
|
||||||
"""
|
"""
|
||||||
host = 'httpbin.org'
|
host = 'httpbin.org'
|
||||||
@ -21,7 +21,7 @@ def test_Host_header_overwrite(httpbin):
|
|||||||
@pytest.mark.skipif(is_windows, reason='Unix-only')
|
@pytest.mark.skipif(is_windows, reason='Unix-only')
|
||||||
def test_output_devnull(httpbin):
|
def test_output_devnull(httpbin):
|
||||||
"""
|
"""
|
||||||
https://github.com/jakubroztocil/httpie/issues/252
|
https://github.com/httpie/httpie/issues/252
|
||||||
|
|
||||||
"""
|
"""
|
||||||
http('--output=/dev/null', httpbin + '/get')
|
http('--output=/dev/null', httpbin + '/get')
|
||||||
|
@ -193,7 +193,7 @@ class TestSession(SessionTestBase):
|
|||||||
|
|
||||||
def test_session_default_header_value_overwritten(self, httpbin):
|
def test_session_default_header_value_overwritten(self, httpbin):
|
||||||
self.start_session(httpbin)
|
self.start_session(httpbin)
|
||||||
# https://github.com/jakubroztocil/httpie/issues/180
|
# https://github.com/httpie/httpie/issues/180
|
||||||
r1 = http('--session=test',
|
r1 = http('--session=test',
|
||||||
httpbin.url + '/headers', 'User-Agent:custom',
|
httpbin.url + '/headers', 'User-Agent:custom',
|
||||||
env=self.env())
|
env=self.env())
|
||||||
@ -205,7 +205,7 @@ class TestSession(SessionTestBase):
|
|||||||
assert r2.json['headers']['User-Agent'] == 'custom'
|
assert r2.json['headers']['User-Agent'] == 'custom'
|
||||||
|
|
||||||
def test_download_in_session(self, httpbin):
|
def test_download_in_session(self, httpbin):
|
||||||
# https://github.com/jakubroztocil/httpie/issues/412
|
# https://github.com/httpie/httpie/issues/412
|
||||||
self.start_session(httpbin)
|
self.start_session(httpbin)
|
||||||
cwd = os.getcwd()
|
cwd = os.getcwd()
|
||||||
os.chdir(gettempdir())
|
os.chdir(gettempdir())
|
||||||
|
@ -11,7 +11,7 @@ from utils import HTTP_OK, TESTS_ROOT, http
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Handle OpenSSL errors, if installed.
|
# Handle OpenSSL errors, if installed.
|
||||||
# See <https://github.com/jakubroztocil/httpie/issues/729>
|
# See <https://github.com/httpie/httpie/issues/729>
|
||||||
# noinspection PyUnresolvedReferences
|
# noinspection PyUnresolvedReferences
|
||||||
import OpenSSL.SSL
|
import OpenSSL.SSL
|
||||||
ssl_errors = (
|
ssl_errors = (
|
||||||
|
Loading…
Reference in New Issue
Block a user