summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Switch macOS CI to GitHub Actionsmacos-github-actionsQuentin Pradet2020-04-014-70/+50
|
* Add context to find_unused_port (#1837)hodbn2020-04-012-16/+11
|
* Simplify get_unreachable_address (#1836)hodbn2020-04-011-13/+2
|
* Include requirement unconditionallyQuentin Pradet2020-03-311-3/+1
| | | The marker was only needed when we were testing Python 3.4.
* Restore coverage measurementsQuentin Pradet2020-03-305-5/+8
|
* Regenerate dummyserver/certs with trustme (#1831)Quentin Pradet2020-03-308-128/+108
| | | | | It would have been better to generate them in tests/conftest.py, but it's quicker to do it that way and since those new certs are compatible with macOS 10.15 they will allow me to debug a SecureTransport issue.
* Stop skipping SecureTransport testsQuentin Pradet2020-03-303-3/+8
|
* Test that ConnectionPool preserves path dot segmentshodbn2020-03-253-1/+12
|
* Skip tests when DNS can't resolve a dotted FQDNhodbn2020-03-214-21/+33
|
* Ensure test host resolves to IPv6 in tests (#1819)Hod Bin Noon2020-03-203-3/+21
| | | | | | | | | | | * fix hang in TestSNI if client never connects * handle insane ipv6 setup in tests * update contributors * more descriptive names in tests Co-authored-by: Hod Bin Noon <bin.noon.hod@gmail.com>
* Ensure load_verify_locations raises SSLError for all backends (#1812)Quentin Pradet2020-03-164-3/+17
| | | | | | | | | | | | | | | | | | | | * Ensure load_verify_locations raises SSLError for all backends This also adds TestSSL to the classes tested in SecureTransport and PyOpenSSL, since: 1. TestSSL was the most natural place for this test. 2. The test only makes sense when run against all SSL backends. Co-authored-by: Pierre-Louis Bonicoli <pierre-louis.bonicoli@libregerbil.fr> * Remove redundant check in test pytest.raises() already checks this. * Update test_socketlevel.py Co-authored-by: Pierre-Louis Bonicoli <pierre-louis.bonicoli@libregerbil.fr> Co-authored-by: Seth Michael Larson <sethmichaellarson@gmail.com>
* Fix test_preserve_chunked_on_retry_after flakiness (#1816)Quentin Pradet2020-03-161-5/+8
| | | | | | | | | | | | | | | Without `Content-Length: 0` or `Connection: close`, the client can try reading more data after the socket gets closed. If it does try, it's going to fail with "Connection reset by peer". This was happening on Windows despite the `preload_content=False` setting. Setting those headers fixes the issue and allows omitting `preload_content=False`. Since I'm a good citizen and want to close the sockets, I collect them and close them when the connection pool is closed. (I'm also renaming the test since it's specifically about the Retry-After header.)
* ci: remove now-unneeded virtualenv workaround (#1813)Quentin Pradet2020-03-131-5/+0
|
* Stop looking at exception values in test_client_no_intermediate (#1811)Quentin Pradet2020-03-121-22/+1
| | | | | | | | | This is just busywork, and never provided us any actual value. I've seen yet another possible value in CI today: "Broken pipe". https://travis-ci.com/github/pquentin/urllib3/jobs/297296688 We still check that there could be an error at the socket level or at the SSL level, so the test is still helpful!
* Update LICENSE copyright dateHimanshu Garg2020-03-122-1/+4
|
* Add support for HTTPS connections to proxies. (#1679)Jorge2020-03-1210-30/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support to talk HTTPS to proxies. Currently there's no way to validate identify for the proxy you might be connecting. Proxies supporting HTTPS endpoints are becoming more common and we need to extend the support for them. When an HTTPS proxy is provided, instead of doing the HTTP CONNECT, we'll forward any requests directly to the proxy and ultimately to the destination. * Fix proxy_headers missing on HTTPS proxy connections. * blackfmt missing files. * Prevent usage of HTTPS proxies when fetching HTTPS resources. - Will be supported by default when we can do TLS within TLS. * Update proxy documentation with more information. * Renamed flag for HTTPS websites through HTTPS proxies. * Added myself to contributors. * Documentation and contributors fixes. * Removed mention that TLS in TLS is being developed as requested. * Space in between my name and the github page. * Add flag to enable HTTPS proxy support. Now that we're adding support for HTTPS proxies we want to avoid a breaking change with clients that had an improper proxy configuration. For now, we're adding a warning an defaulting to the previous behavior. In the future we'll change the behavior to enable HTTPS proxies by default. * Remove guard flag, error out on HTTPS/HTTPS. As requested in the last revision for the PR: - Removed the _enable_https_proxies flag. Instead the feature will be enabled and will error out on invalid configurations. (HTTPS + HTTPS) - Other comments: rename a method, parentheses to clarify order of operations.
* Rename VerifiedHTTPSConnection to HTTPSConnection (#1805)kobayashi2020-02-283-20/+15
|
* Allow the CA certificate data to be passed as a string (#1804)Benno Rice2020-02-225-6/+33
|
* Raise ValueError if method contains control characters (#1800)Seth Michael Larson2020-02-173-0/+27
|
* travis: Fix PATH with macOS and Python 2.7 (#1802)Quentin Pradet2020-02-171-1/+2
|
* Remove deprecated test arguments from setup.py (#1801)Jon Dufresne2020-02-161-8/+0
|
* Add __repr__ to Timeout (#1795)John Vandenberg2020-02-041-1/+4
|
* Generate bad CA with trustme (#1794)Quentin Pradet2020-01-274-30/+28
|
* Generate client password-protected cert with trustme (#1793)Quentin Pradet2020-01-266-118/+81
|
* Generate client certs dynamically using trustme (#1791)Quentin Pradet2020-01-255-78/+55
|
* Fix Travis CI config validation warningsChristian Clauss2020-01-231-3/+2
|
* Release 1.25.8 (#1788)1.25.8Seth Michael Larson2020-01-212-3/+3
|
* Optimize _encode_invalid_chars (#1787)Quentin Pradet2020-01-212-9/+8
| | | | Co-authored-by: Seth Michael Larson <sethmichaellarson@gmail.com>
* Move IPv6 test skips in server fixturesQuentin Pradet2020-01-162-3/+7
|
* Factorize test certificates serializationQuentin Pradet2020-01-161-54/+14
|
* Generate IPV6 certificates using trustmeQuentin Pradet2020-01-165-77/+38
|
* Run IPv6 Tornado server from fixtureQuentin Pradet2020-01-164-20/+32
| | | | The next commit will generate the certificates using trustme.
* Use trustme to generate IP_SAN certQuentin Pradet2020-01-144-31/+29
|
* Empty responses should have no lines.Benjamin Peterson2020-01-142-2/+3
| | | | Previously, iterating the lines of an empty response would yield the empty string once. However, the iterator should instead never yield anything. This is consistent with file io; `open('/dev/null', 'rb').readlines()` is `[]`.
* Use trustme to generate NO_SAN certsQuentin Pradet2020-01-135-67/+18
|
* Use fixture to configure NO_SAN test certsQuentin Pradet2020-01-132-7/+38
| | | | | | | Switching to pytest fixtures for those tests will allow to switch to dynamically generated certificates in the future, without changing the test. Using fixtures is easier than the existing setup because it's easy to send information to the test about url, port and ca certs to use.
* Test Python 3.9 on LinuxQuentin Pradet2020-01-093-2/+5
|
* Test Python 3.8 on macOSQuentin Pradet2020-01-092-3/+13
|
* Use SelectorEventLoop on Python 3.8 + Windows (#1777)Quentin Pradet2020-01-072-0/+17
|
* Use Tornado 6 on Python 3 to fix 3.9 error (#1775)Quentin Pradet2020-01-061-1/+2
|
* Drop Python 3.4 (#1774)Quentin Pradet2020-01-067-15/+9
| | | | It reached its end-of-life on 2019-03-18 and represents <4% of our daily downloads.
* Document actual default value for resolve_cert_reqs() (#1767)Dominique Martinet2019-12-031-1/+1
|
* Banner needs a space to show properlySeth Michael Larson2019-12-021-0/+1
|
* Remove CodeFund as they are no longer sponsoringSeth Michael Larson2019-12-021-6/+0
|
* Skip IPv6 test class when IPv6 is not available (#1762)Quentin Pradet2019-12-021-1/+7
|
* Remove unneeded test timeouts (#1763)Quentin Pradet2019-12-021-4/+0
|
* Revert behavior to is_appengine=False in testbed (#1760)Zev Goldstein2019-11-271-7/+7
| | | | | | Whether testbed tests "are appengine" is debatable, but historically this function has returned False in testbed tests. This behavior was inadvertently (and unnecessarily) changed in PR #1704. This commit undoes that regression for testbed tests.
* Correct a typo in noxfile.py (#1757)Felix Yan2019-11-241-1/+1
|
* Add hostname to insecure connection warning. (#1691)Steltek2019-11-221-2/+2
|
* Remove unused HTTPSConnection.connect()Quentin Pradet2019-11-211-34/+0
| | | | Unverified connections also go through VerifiedHTTPSConnection.