Senthil Kumaran
166214c344
merge from 3.4
...
Issue #7776 : Fix ``Host:'' header and reconnection when using http.client.HTTPConnection.set_tunnel()
Patch by Nikolaus Rath.
2014-04-14 13:10:05 -04:00
Senthil Kumaran
9da047b3a5
Issue #7776 : Fix ``Host:'' header and reconnection when using http.client.HTTPConnection.set_tunnel().
...
Patch by Nikolaus Rath.
2014-04-14 13:07:56 -04:00
Victor Stinner
03ce1c013d
(Merge 3.4) Issue #20976 : pyflakes: Remove unused imports
2014-03-20 09:22:39 +01:00
Victor Stinner
7fa767e517
Issue #20976 : pyflakes: Remove unused imports
2014-03-20 09:16:38 +01:00
Kristján Valur Jónsson
8e5d0caf92
Issue #19009
...
Enhance HTTPResponse.readline() performance
2014-03-19 10:07:26 +00:00
Serhiy Storchaka
c0b0bb6e01
Issue #20331 : Fixed possible FD leaks in various modules:
...
http.server, imghdr, mailcap, mimetypes, xml.etree.
2014-01-25 19:43:56 +02:00
Serhiy Storchaka
91b0bc237c
Issue #20331 : Fixed possible FD leaks in various modules:
...
http.server, imghdr, mailcap, mimetypes, xml.etree.
2014-01-25 19:43:02 +02:00
Benjamin Peterson
c28ab08887
merge 3.3 ( #18574 )
2014-01-18 21:51:11 -05:00
Benjamin Peterson
044242360d
fix handling of 100-continue status code ( closes #18574 )
2014-01-18 21:50:18 -05:00
Serhiy Storchaka
8f8ec92de8
Issue #19936 : Added executable bits or shebang lines to Python scripts which
...
requires them. Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface. Fixed
shebang lines in the unittestgui and checkpip scripts.
2014-01-16 17:33:23 +02:00
Serhiy Storchaka
b992a0e102
Issue #19936 : Added executable bits or shebang lines to Python scripts which
...
requires them. Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface. Fixed
shebang line to use python3 executable in the unittestgui script.
2014-01-16 17:15:49 +02:00
Benjamin Peterson
fc45f173a3
merge 3.3 ( #20018 )
2013-12-18 15:37:03 -06:00
Benjamin Peterson
ccedc22769
update url to spec ( closes #20018 )
2013-12-18 15:35:18 -06:00
Serhiy Storchaka
cac05e2e90
Issue #20007 : HTTPResponse.read(0) no more prematurely closes connection.
...
Original patch by Simon Sapin.
2013-12-17 21:51:40 +02:00
Serhiy Storchaka
1c84ac1f55
Issue #20007 : HTTPResponse.read(0) no more prematurely closes connection.
...
Original patch by Simon Sapin.
2013-12-17 21:50:02 +02:00
Christian Heimes
f723c711d3
Issue 19509: Don't call match_hostname() twice in http.client.
2013-12-05 07:51:17 +01:00
Christian Heimes
67986f9431
Issue #19735 : Implement private function ssl._create_stdlib_context() to
...
create SSLContext objects in Python's stdlib module. It provides a single
configuration point and makes use of SSLContext.load_default_certs().
2013-11-23 22:43:47 +01:00
Benjamin Peterson
c99874da83
merge 3.3 ( #19435 )
2013-10-30 12:51:16 -04:00
Benjamin Peterson
a50f89954d
merge 3.2 ( #19435 )
2013-10-30 12:50:18 -04:00
Benjamin Peterson
35aca89617
merge 3.1 ( #19435 )
2013-10-30 12:48:59 -04:00
Benjamin Peterson
04e9de40f3
use the collapsed path in the run_cgi method ( closes #19435 )
2013-10-30 12:43:09 -04:00
Georg Brandl
bf3f8eb960
Issue #16037 : HTTPMessage.readheaders() raises an HTTPException when more than
...
100 headers are read. Adapted from patch by Jyrki Pulliainen.
2013-10-27 07:34:48 +01:00
Georg Brandl
b89b5df9c9
merge with 3.3
2013-10-27 07:46:09 +01:00
Senthil Kumaran
b0ce820bb3
merge from 3.3
2013-09-29 18:59:27 -07:00
Senthil Kumaran
600b735062
Minor code improvement. Review comment by Eric V. Smith
2013-09-29 18:59:04 -07:00
Senthil Kumaran
defe7f4c62
Expose --bind argument for http.server, enable http.server to bind to a user
...
specified network interface.
Patch contributed by Malte Swart. Addresses issue #17764 .
HG :Enter commit message. Lines beginning with 'HG:' are removed.
2013-09-15 09:37:27 -07:00
Senthil Kumaran
187b063005
Fix http.server's request handling case on trailing '/'.
...
Patch contributed by Vajrasky Kok. Addresses Issue #17324
2013-09-13 00:22:45 -07:00
Senthil Kumaran
72c238e21a
Fix http.server's request handling case on trailing '/'.
...
Patch contributed by Vajrasky Kok. Addresses Issue #17324
2013-09-13 00:21:18 -07:00
R David Murray
0cb8e5131d
Merge #16611 : BaseCookie now parses 'secure' and 'httponly' flags.
2013-08-25 11:09:45 -04:00
R David Murray
cd0f74b1e0
#16611 : BaseCookie now parses 'secure' and 'httponly' flags.
...
Previously it generated them if they were given a value, but completely
ignored them if they were present in the string passed in to be parsed. Now
if the flag appears on a cookie, the corresponding Morsel key will reference a
True value. Other pre-existing behavior is retained in this maintenance
patch: if the source contains something like 'secure=foo', morsel['secure']
will return 'foo'. Since such a value doesn't round trip and never did (and
would be a surprising occurrence) a subsequent non-bug-fix patch may change
this behavior.
Inspired by a patch from Julien Phalip, who reviewed this one.
2013-08-25 11:09:02 -04:00
Brett Cannon
cd171c8e92
Issue #18200 : Back out usage of ModuleNotFoundError (8d28d44f3a9a)
2013-07-04 17:43:24 -04:00
Brett Cannon
0a140668fa
Issue #18200 : Update the stdlib (except tests) to use
...
ModuleNotFoundError.
2013-06-13 20:57:26 -04:00
Andrew Svetlov
3042b5ebf4
Issue #16658 : add missing return to HTTPConnection.send().
...
Patch by Jeff Knupp
2013-04-12 22:50:42 +03:00
Andrew Svetlov
7b2c8bb833
Issue #16658 : add missing return to HTTPConnection.send().
...
Patch by Jeff Knupp
2013-04-12 22:49:19 +03:00
Senthil Kumaran
7005b1f90a
#17678 : Remove the use of a deprecated method http/cookiejar.py. Changing the
...
usage of get_origin_req_host() to origin_req_host.
Patch by Wei-Cheng Pan
2013-04-09 07:11:07 -07:00
Senthil Kumaran
d9fbf36bbd
#17678 : Fix DeprecationWarning in the http/cookiejar.py by changing the usage
...
of get_origin_req_host() to origin_req_host.
Patch by Wei-Cheng Pan
2013-04-09 07:07:59 -07:00
Senthil Kumaran
052ddb01b3
#17460 : Remove the strict argument of HTTPConnection and removing the
...
DeprecationWarning being issued from 3.2 onwards.
2013-03-18 14:11:41 -07:00
Senthil Kumaran
2688644eef
#1291 http.server's send_error takes an optional explain argument
2013-03-15 07:53:21 -07:00
Senthil Kumaran
df1d3c5c4b
Reverting the changeset b87792757ee8 made for Issue #12921
2013-03-05 02:28:18 -08:00
Senthil Kumaran
884f0585a4
Reverting the changeset 5d76a4746d9d made for Issue #12921
2013-03-05 02:26:50 -08:00
Senthil Kumaran
1e7551dc87
Reverting the changeset 5126e62c60af made for Issue #12921
2013-03-05 02:25:58 -08:00
Senthil Kumaran
24431f1802
Fix Issue #12921 : BaseHTTPServer's send_error should send the correct error
...
response message when send_error includes a message in addition to error
status. Patch contributed by Karl.
2013-03-05 01:26:33 -08:00
Senthil Kumaran
c37f835a43
Fix Issue #12921 : BaseHTTPServer's send_error should send the correct error
...
response message when send_error includes a message in addition to error
status. Patch contributed by Karl.
2013-03-05 01:23:44 -08:00
Senthil Kumaran
3fb066d286
Fix Issue #12921 : BaseHTTPServer's send_error should send the correct error
...
response message when send_error includes a message in addition to error
status. Patch contributed by Karl.
2013-03-05 01:22:57 -08:00
Giampaolo Rodola'
2f50aaf2ff
modernize some modules' code by using with statement around open()
2013-02-12 02:04:27 +01:00
Serhiy Storchaka
daf990f8a7
Issue #16723 : httplib.HTTPResponse no longer marked closed when the connection
...
is automatically closed.
2013-02-06 10:37:19 +02:00
Serhiy Storchaka
b6c86fd87f
Issue #16723 : httplib.HTTPResponse no longer marked closed when the connection
...
is automatically closed.
2013-02-06 10:35:40 +02:00
Serhiy Storchaka
b5b9c8cd40
Issue #16723 : httplib.HTTPResponse no longer marked closed when the connection
...
is automatically closed.
2013-02-06 10:31:57 +02:00
Antoine Pitrou
b5032c85af
Issue #15633 : httplib.HTTPResponse is now mark closed when the server sends less than the advertised Content-Length.
2013-02-02 23:06:22 +01:00
Antoine Pitrou
6a35e18161
Issue #15633 : httplib.HTTPResponse is now mark closed when the server sends less than the advertised Content-Length.
2013-02-02 23:04:56 +01:00