Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-32297: Few misspellings found in Python source code comments. (#4803) | Mike | 2017-12-14 | 1 | -1/+1 |
| | | | | | | | | * Fix multiple typos in code comments * Add spacing in comments (test_logging.py, test_math.py) * Fix spaces at the beginning of comments in test_logging.py | ||||
* | bpo-31945: Configurable blocksize in HTTP(S)Connection (#4279) | Nir Soffer | 2017-11-06 | 1 | -7/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | blocksize was hardcoded to 8192, preventing efficient upload when using file-like body. Add blocksize argument to __init__, so users can configure the blocksize to fit their needs. I tested this uploading data from /dev/zero to a web server dropping the received data, to test the overhead of the HTTPConnection.send() with a file-like object. Here is an example 10g upload with the default buffer size (8192): $ time ~/src/cpython/release/python upload-httplib.py 10 https://localhost:8000/ Uploaded 10.00g in 17.53 seconds (584.00m/s) real 0m17.574s user 0m8.887s sys 0m5.971s Same with 512k blocksize: $ time ~/src/cpython/release/python upload-httplib.py 10 https://localhost:8000/ Uploaded 10.00g in 6.60 seconds (1551.15m/s) real 0m6.641s user 0m3.426s sys 0m2.162s In real world usage the difference will be smaller, depending on the local and remote storage and the network. See https://github.com/nirs/http-bench for more info. | ||||
* | bpo-30553: Add status code 421 to http.HTTPStatus (GH-2589) | Vitor Pereira | 2017-10-26 | 1 | -0/+3 |
| | |||||
* | bpo-31462: Remove trailing whitespaces. (#3564) | Serhiy Storchaka | 2017-09-14 | 1 | -2/+2 |
| | |||||
* | bpo-31370: Remove support for threads-less builds (#3385) | Antoine Pitrou | 2017-09-07 | 1 | -4/+1 |
| | | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility. | ||||
* | bpo-28707: Add the directory parameter to ↵ | Stéphane Wirtel | 2017-05-24 | 1 | -2/+13 |
| | | | | | | | | http.server.SimpleHTTPRequestHandler and http.server module (#1776) * bpo-28707: call the constructor of SimpleHTTPRequestHandler in the test with a mock object * bpo-28707: Add the directory parameter to http.server.SimpleHTTPRequestHandler and http.server module | ||||
* | Remove duplicate line in Lib/http/client.py (#1665) | remitamine | 2017-05-19 | 1 | -1/+0 |
| | |||||
* | bpo-30166: Import command-line parsing modules only when needed. (#1293) | Serhiy Storchaka | 2017-05-04 | 1 | -1/+2 |
| | |||||
* | bpo-30144: Import collections ABC from collections.abc rather than ↵ | Serhiy Storchaka | 2017-04-24 | 1 | -2/+2 |
| | | | | collections. (#1263) | ||||
* | bpo-29654 : Support If-Modified-Since HTTP header (browser cache) (#298) | Pierre Quentel | 2017-04-02 | 1 | -4/+35 |
| | | | | Return 304 response if file was not modified. | ||||
* | Issue #29192: Removed deprecated features in the http.cookies module. | Serhiy Storchaka | 2017-01-13 | 1 | -29/+1 |
| | |||||
* | Remove unused imports. | Serhiy Storchaka | 2016-12-16 | 1 | -1/+0 |
| | |||||
* | Issue #28548: Parse HTTP request version even if too many words received | Martin Panter | 2016-11-19 | 1 | -15/+18 |
| | |||||
* | Issue #23214: Remove BufferedReader.read1(-1) workaround | Martin Panter | 2016-10-21 | 1 | -8/+1 |
| | |||||
* | Issue #22493: Inline flags now should be used only at the start of the | Serhiy Storchaka | 2016-09-11 | 1 | -2/+1 |
| | | | | | regular expression. Deprecation warning is emitted if uses them in the middle of the regular expression. | ||||
* | Issue #28022: Deprecate ssl-related arguments in favor of SSLContext. | Christian Heimes | 2016-09-10 | 1 | -0/+6 |
| | | | | | | | The deprecation include manual creation of SSLSocket and certfile/keyfile (or similar) in ftplib, httplib, imaplib, smtplib, poplib and urllib. ssl.wrap_socket() is not marked as deprecated yet. | ||||
* | Issue 27948: Allow backslashes in the literal string portion of f-strings, ↵ | Eric V. Smith | 2016-09-10 | 1 | -1/+1 |
| | | | | but not in the expressions. Also, require expressions to begin and end with literal curly braces. | ||||
* | [merge from 3.5] - Issue28010 - Make http.client.HTTPConnection.putrequest | Senthil Kumaran | 2016-09-08 | 1 | -1/+2 |
|\ | | | | | | | documentation consistent with the code. | ||||
| * | Issue28010 - Make http.client.HTTPConnection.putrequest documentation ↵ | Senthil Kumaran | 2016-09-08 | 1 | -1/+2 |
| | | | | | | | | consistent with the code. | ||||
| * | Issue #27895: Spelling fixes (Contributed by Ville Skyttä). | Martin Panter | 2016-09-07 | 1 | -1/+1 |
| | | |||||
* | | #27364: fix "incorrect" uses of escape character in the stdlib. | R David Murray | 2016-09-08 | 3 | -5/+5 |
| | | | | | | | | | | | | | | And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter. | ||||
* | | Issue 27921: Remove backslash from another f-string. | Eric V. Smith | 2016-09-03 | 1 | -1/+1 |
| | | |||||
* | | Issue #27895: Spelling fixes (Contributed by Ville Skyttä). | Raymond Hettinger | 2016-08-30 | 1 | -1/+1 |
| | | |||||
* | | Issue #12319: Always send file request bodies using chunked encoding | Martin Panter | 2016-08-27 | 1 | -23/+8 |
| | | | | | | | | | | | | | | The previous attempt to determine the file’s Content-Length gave a false positive for pipes on Windows. Also, drop the special case for sending zero-length iterable bodies. | ||||
* | | Merge | Raymond Hettinger | 2016-08-26 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue 19504: Change "customise" to "customize" American spelling. | Raymond Hettinger | 2016-08-26 | 1 | -1/+1 |
| | | |||||
* | | Issue #12319: Support for chunked encoding of HTTP request bodies | Martin Panter | 2016-08-24 | 1 | -50/+149 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the body object is a file, its size is no longer determined with fstat(), since that can report the wrong result (e.g. reading from a pipe). Instead, determine the size using seek(), or fall back to chunked encoding for unseekable files. Also, change the logic for detecting text files to check for TextIOBase inheritance, rather than inspecting the “mode” attribute, which may not exist (e.g. BytesIO and StringIO). The Content-Length for text files is no longer determined ahead of time, because the original logic could have been wrong depending on the codec and newline translation settings. Patch by Demian Brecht and Rolf Krahl, with a few tweaks by me. | ||||
* | | [merge from 3.5] - Issue #27466: Change time format returned by | Senthil Kumaran | 2016-07-10 | 1 | -1/+1 |
|\ \ | |/ | | | | | http.cookie.time2netscape, confirming the netscape cookie format. | ||||
| * | Issue #27466: Change time format returned by http.cookie.time2netscape, | Senthil Kumaran | 2016-07-10 | 1 | -1/+1 |
| | | | | | | | | confirming the netscape cookie format. | ||||
* | | Issue #25738: Merge HTTP server from 3.5 | Martin Panter | 2016-06-08 | 1 | -13/+20 |
|\ \ | |/ | |||||
| * | Issue #25738: Don’t send message body for 205 Reset Content | Martin Panter | 2016-06-08 | 1 | -10/+20 |
| | | | | | | | | Patch by Susumu Koshiba. | ||||
* | | Issue #27076: Merge spelling from 3.5 | Martin Panter | 2016-05-26 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #27076: Doc, comment and tests spelling fixes | Martin Panter | 2016-05-26 | 1 | -1/+1 |
| | | | | | | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä. | ||||
* | | Merge typo fixes from 3.5 | Martin Panter | 2016-05-08 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Fix typos in comments, documentation and test method names | Martin Panter | 2016-05-08 | 1 | -1/+1 |
| | | |||||
* | | Issue #24902: Print server URL on http.server startup | Berker Peksag | 2016-04-29 | 1 | -1/+2 |
| | | | | | | | | Initial patch by Felix Kaiser. | ||||
* | | Issue #26657: Merge http.server fix from 3.5 | Martin Panter | 2016-04-18 | 1 | -3/+3 |
|\ \ | |/ | |||||
| * | Issue #26657: Fix Windows directory traversal vulnerability with http.server | Martin Panter | 2016-04-18 | 1 | -3/+3 |
| | | | | | | | | | | Based on patch by Philipp Hagemeister. This fixes a regression caused by revision f4377699fd47. | ||||
* | | Issue #26404: Add context manager to socketserver, by Aviv Palivoda | Martin Panter | 2016-04-13 | 1 | -10/+8 |
| | | |||||
* | | Issue #26585: Eliminate _quote_html() and use html.escape(quote=False) | Martin Panter | 2016-04-11 | 1 | -8/+8 |
| | | | | | | | | Patch by Xiang Zhang. | ||||
* | | Merge typo fixes from 3.5 | Martin Panter | 2016-04-05 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Fix typos in documentation and comments | Martin Panter | 2016-04-05 | 1 | -1/+1 |
| | | |||||
* | | Issue #26586: Simple enhancements to BaseHTTPRequestHandler by Xiang Zhang | Martin Panter | 2016-04-03 | 1 | -15/+13 |
| | | |||||
* | | Issue #26586: Merge excessive HTTP header handling from 3.5 | Martin Panter | 2016-04-03 | 1 | -0/+7 |
|\ \ | |/ | |||||
| * | Issue #26586: Handle excessive header fields in http.server, by Xiang Zhang | Martin Panter | 2016-04-03 | 1 | -0/+7 |
| | | |||||
* | | Issue #26499: Merge HTTPResponse fix from 3.5 | Martin Panter | 2016-03-17 | 1 | -0/+8 |
|\ \ | |/ | |||||
| * | Issue #26499: Fixes to HTTPResponse.readline() and read1(), by Silent Ghost | Martin Panter | 2016-03-17 | 1 | -0/+8 |
| | | |||||
* | | Issue #747320: Use email.utils.formatdate() to avoid code duplication | Berker Peksag | 2016-03-14 | 1 | -6/+2 |
| | | | | | | | | | | | | in BaseHTTPRequestHandler Initial patch by karlcow. | ||||
* | | Issue #16181: cookiejar.http2time() now returns None if year is higher than ↵ | Berker Peksag | 2016-03-14 | 1 | -1/+4 |
|\ \ | |/ | | | | | datetime.MAXYEAR | ||||
| * | Issue #16181: cookiejar.http2time() now returns None if year is higher than ↵ | Berker Peksag | 2016-03-14 | 1 | -1/+4 |
| | | | | | | | | datetime.MAXYEAR |