<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Lib/http/server.py, branch faster-bytes-iter</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-40094: CGIHTTPRequestHandler logs exit code (GH-19285)</title>
<updated>2020-04-02T01:42:05+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-04-02T01:42:05+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=9a679a0e47d58aa73b7747d4e16140048c10baf5'/>
<id>9a679a0e47d58aa73b7747d4e16140048c10baf5</id>
<content type='text'>
CGIHTTPRequestHandler of http.server now logs the CGI script exit
code, rather than the CGI script exit status of os.waitpid().

For example, if the script is killed by signal 11, it now logs:
"CGI script exit code -11."</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
CGIHTTPRequestHandler of http.server now logs the CGI script exit
code, rather than the CGI script exit status of os.waitpid().

For example, if the script is killed by signal 11, it now logs:
"CGI script exit code -11."</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-35292: Avoid calling mimetypes.init when http.server is imported (GH-17822)</title>
<updated>2020-01-08T18:28:14+00:00</updated>
<author>
<name>An Long</name>
<email>aisk@users.noreply.github.com</email>
</author>
<published>2020-01-08T18:28:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=5907e61a8d4da6d0f11bf1062d6d17484560a15e'/>
<id>5907e61a8d4da6d0f11bf1062d6d17484560a15e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38907: Suppress any exception when attempting to set V6ONLY. (GH-17864)</title>
<updated>2020-01-06T12:59:36+00:00</updated>
<author>
<name>Jason R. Coombs</name>
<email>jaraco@jaraco.com</email>
</author>
<published>2020-01-06T12:59:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=7cdc31a14c824000cbe8b487900c9826a33f6940'/>
<id>7cdc31a14c824000cbe8b487900c9826a33f6940</id>
<content type='text'>
Fixes error attempting to bind to IPv4 address.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes error attempting to bind to IPv4 address.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38907: In http.server script, restore binding to IPv4 on Windows. (GH-17851)</title>
<updated>2020-01-06T03:32:19+00:00</updated>
<author>
<name>Jason R. Coombs</name>
<email>jaraco@jaraco.com</email>
</author>
<published>2020-01-06T03:32:19+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=ee94bdb0598f9bc47d6a49e58fffc97aa617be96'/>
<id>ee94bdb0598f9bc47d6a49e58fffc97aa617be96</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38863: Improve is_cgi() in http.server (GH-17312)</title>
<updated>2019-11-22T09:13:05+00:00</updated>
<author>
<name>Siwon Kang</name>
<email>kkangshawn@gmail.com</email>
</author>
<published>2019-11-22T09:13:05+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=91daa9d7224626dad4bb820924c01b3438ca6e3f'/>
<id>91daa9d7224626dad4bb820924c01b3438ca6e3f</id>
<content type='text'>
is_cgi() function of http.server library does not currently handle a
cgi script if one of the cgi_directories is located at the
sub-directory of given path. Since is_cgi() in CGIHTTPRequestHandler
class separates given path into (dir, rest) based on the first seen
'/', multi-level directories like /sub/dir/cgi-bin/hello.py is divided
into head=/sub, rest=dir/cgi-bin/hello.py then check whether '/sub'
exists in cgi_directories = [..., '/sub/dir/cgi-bin'].
This patch makes the is_cgi() keep expanding dir part to the next '/'
then checking if that expanded path exists in the cgi_directories.

Signed-off-by: Siwon Kang &lt;kkangshawn@gmail.com&gt;





https://bugs.python.org/issue38863</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
is_cgi() function of http.server library does not currently handle a
cgi script if one of the cgi_directories is located at the
sub-directory of given path. Since is_cgi() in CGIHTTPRequestHandler
class separates given path into (dir, rest) based on the first seen
'/', multi-level directories like /sub/dir/cgi-bin/hello.py is divided
into head=/sub, rest=dir/cgi-bin/hello.py then check whether '/sub'
exists in cgi_directories = [..., '/sub/dir/cgi-bin'].
This patch makes the is_cgi() keep expanding dir part to the next '/'
then checking if that expanded path exists in the cgi_directories.

Signed-off-by: Siwon Kang &lt;kkangshawn@gmail.com&gt;





https://bugs.python.org/issue38863</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-35640: Allow passing PathLike arguments to SimpleHTTPRequestHandler (GH-11398)</title>
<updated>2019-09-11T13:03:46+00:00</updated>
<author>
<name>Géry Ogam</name>
<email>gery.ogam@gmail.com</email>
</author>
<published>2019-09-11T13:03:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=781266ebb60e7ac781a3e07030d92275721ff3cf'/>
<id>781266ebb60e7ac781a3e07030d92275721ff3cf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-24209: In http.server script, rely on getaddrinfo to bind to preferred address based on the bind parameter. (#11767)</title>
<updated>2019-02-07T13:22:45+00:00</updated>
<author>
<name>Jason R. Coombs</name>
<email>jaraco@jaraco.com</email>
</author>
<published>2019-02-07T13:22:45+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=f289084c83190cc72db4a70c58f007ec62e75247'/>
<id>f289084c83190cc72db4a70c58f007ec62e75247</id>
<content type='text'>
In http.server script, rely on getaddrinfo to bind to preferred address based on the bind parameter.

As a result, now IPv6 is used as the default (including IPv4 on dual-stack systems). Enhanced tests.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In http.server script, rely on getaddrinfo to bind to preferred address based on the bind parameter.

As a result, now IPv6 is used as the default (including IPv4 on dual-stack systems). Enhanced tests.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-34711: Return HTTPStatus.NOT_FOUND if path.endswith('/') and not a directory (GH-9687)</title>
<updated>2018-12-26T05:43:42+00:00</updated>
<author>
<name>Michael Felt</name>
<email>aixtools@users.noreply.github.com</email>
</author>
<published>2018-12-26T05:43:42+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=2062a20641febad5eb9c18d74e1cfb4d7a6e53ed'/>
<id>2062a20641febad5eb9c18d74e1cfb4d7a6e53ed</id>
<content type='text'>
AIX allows a trailing slash on local file system paths, which isn't what we want
in http.server. Accordingly, check explicitly for this case in the server code,
rather than relying on the OS raising an exception.

Patch by Michael Felt.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
AIX allows a trailing slash on local file system paths, which isn't what we want
in http.server. Accordingly, check explicitly for this case in the server code,
rather than relying on the OS raising an exception.

Patch by Michael Felt.
</pre>
</div>
</content>
</entry>
<entry>
<title>Adds IPv6 support when invoking http.server directly. (GH-10595)</title>
<updated>2018-11-26T18:43:38+00:00</updated>
<author>
<name>Lisa Roach</name>
<email>lisaroach14@gmail.com</email>
</author>
<published>2018-11-26T18:43:38+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=433433fa6d55091600ce88dd19206b3902e0a87d'/>
<id>433433fa6d55091600ce88dd19206b3902e0a87d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-33663: Convert content length to string before putting to header (GH-7754)</title>
<updated>2018-06-18T21:17:53+00:00</updated>
<author>
<name>ValeriyaSinevich</name>
<email>valeriya.sinevich@phystech.edu</email>
</author>
<published>2018-06-18T21:17:53+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=b36b0a3765bcacb4dcdbf12060e9e99711855da8'/>
<id>b36b0a3765bcacb4dcdbf12060e9e99711855da8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
