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 2019-08-13 17:04 by rjayne.

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
2019-08-13 17:04:27rjaynecreate