diff options
author | Stéphane Wirtel <stephane@wirtel.be> | 2017-05-24 07:29:06 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-05-24 07:29:06 (GMT) |
commit | a17a2f52c4c3b37414da95a152fc8669978c7c83 (patch) | |
tree | abf6327c00ac9ae647474b4b63a704a396ba5a58 /Doc/whatsnew | |
parent | 07244a83014fad42da937c17d98474b47a570bf7 (diff) | |
download | cpython-a17a2f52c4c3b37414da95a152fc8669978c7c83.zip cpython-a17a2f52c4c3b37414da95a152fc8669978c7c83.tar.gz cpython-a17a2f52c4c3b37414da95a152fc8669978c7c83.tar.bz2 |
bpo-28707: Add the directory parameter to 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
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.7.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst index c305e5a..3195d90 100644 --- a/Doc/whatsnew/3.7.rst +++ b/Doc/whatsnew/3.7.rst @@ -139,6 +139,11 @@ If-Modified-Since header. The server returns the 304 response status if the target file was not modified after the time specified in the header. (Contributed by Pierre Quentel in :issue:`29654`.) +Add the parameter ``directory`` to the :class:`~http.server.SimpleHTTPRequestHandler` +and the ``--directory`` to the command line of the module :mod:`~http.server`. +With this parameter, the server serves the specified directory, by default it uses the current working directory. +(Contributed by Stéphane Wirtel and Julien Palard in :issue:`28707`.) + locale ------ |