[issue37843] CGIHTTPRequestHandler does not take args.directory in constructor

Richard Jayne report at bugs.python.org
Tue Aug 13 13:04:27 EDT 2019


New submission from Richard Jayne <rjayne at msn.com>:

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.

----------
components: Extension Modules
messages: 349585
nosy: rjayne
priority: normal
severity: normal
status: open
title: CGIHTTPRequestHandler does not take args.directory in constructor
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37843>
_______________________________________


More information about the Python-bugs-list mailing list