diff --git a/README.rst b/README.rst index d6c03ebe..00a9fd1c 100644 --- a/README.rst +++ b/README.rst @@ -889,7 +889,7 @@ support that, the whole file will simply be downloaded: Other notes: * The ``--download`` option only changes how the response body is treated. -* You can still set custom headers, use ``--verbose, -v``, etc. +* You can still set custom headers, use sessions, ``--verbose, -v``, etc. * ``--download`` always implies ``--follow`` (redirects are followed). * HTTPie exits with status code ``1`` (error) if the body hasn't been fully downloaded. diff --git a/httpie/input.py b/httpie/input.py index 6b637f22..878bcfc6 100644 --- a/httpie/input.py +++ b/httpie/input.py @@ -115,8 +115,7 @@ class Parser(ArgumentParser): self._parse_items() if not env.stdin_isatty: self._body_from_file(self.env.stdin) - if not (self.args.url.startswith(HTTP) - or self.args.url.startswith(HTTPS)): + if not (self.args.url.startswith((HTTP, HTTPS))): # Default to 'https://' if invoked as `https args`. scheme = HTTPS if self.env.progname == 'https' else HTTP self.args.url = scheme + self.args.url diff --git a/tests/tests.py b/tests/tests.py index c5a66d6c..49c81c56 100755 --- a/tests/tests.py +++ b/tests/tests.py @@ -19,7 +19,6 @@ To make it run faster and offline you can:: HTTPBIN_URL=http://localhost:5000 tox """ -from io import BytesIO import subprocess import os import sys