<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Lib/http/server.py, branch misc-acks-comment</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<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://git.baserock.org/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://git.baserock.org/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://git.baserock.org/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://git.baserock.org/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://git.baserock.org/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://git.baserock.org/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>
<entry>
<title>bpo-31639: Change ThreadedHTTPServer to ThreadingHTTPServer class name (GH-7195)</title>
<updated>2018-05-29T20:10:30+00:00</updated>
<author>
<name>Géry Ogam</name>
<email>gery.ogam@gmail.com</email>
</author>
<published>2018-05-29T20:10:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=1cee216cf383eade641aed22f4ec7d4cb565ecff'/>
<id>1cee216cf383eade641aed22f4ec7d4cb565ecff</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31639: Use threads in http.server module. (GH-5018)</title>
<updated>2018-03-23T16:40:33+00:00</updated>
<author>
<name>Julien Palard</name>
<email>julien@palard.fr</email>
</author>
<published>2018-03-23T16:40:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8bcfa02e4b1b65634e526e197588bc600674c80b'/>
<id>8bcfa02e4b1b65634e526e197588bc600674c80b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31462: Remove trailing whitespaces. (#3564)</title>
<updated>2017-09-14T06:38:36+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-09-14T06:38:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=13ad3b7a82bf56d803fbe48ee5df6c4b08986c78'/>
<id>13ad3b7a82bf56d803fbe48ee5df6c4b08986c78</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-28707: Add the directory parameter to http.server.SimpleHTTPRequestHandler and http.server module (#1776)</title>
<updated>2017-05-24T07:29:06+00:00</updated>
<author>
<name>Stéphane Wirtel</name>
<email>stephane@wirtel.be</email>
</author>
<published>2017-05-24T07:29:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=a17a2f52c4c3b37414da95a152fc8669978c7c83'/>
<id>a17a2f52c4c3b37414da95a152fc8669978c7c83</id>
<content type='text'>
* 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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 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
</pre>
</div>
</content>
</entry>
</feed>
