This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: CGIHTTPRequestHandler does not take args.directory in constructor
Type: enhancement Stage:
Components: Extension Modules Versions: Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: rjayne
Priority: normal Keywords:

Created on 2019-08-13 17:04 by rjayne, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg349585 - (view) Author: Richard Jayne (rjayne) Date: 2019-08-13 17:04
In Lib/http/server.py

    if args.cgi:
        handler_class = CGIHTTPRequestHandler
    else:
        handler_class = partial(SimpleHTTPRequestHandler,
                                directory=args.directory)

Notice that CGIHTTPRequestHandler does not accept directory=args.directory, and so the option does not work with the --cgi option.
History
Date User Action Args
2022-04-11 14:59:19adminsetgithub: 82024
2019-08-13 17:04:27rjaynecreate