The WSGI PEP 3333 states the following:

> PATH_INFO
> The remainder of the request URL's "path", designating the virtual
> "location" of the request's target within the application. This may be
> an empty string, if the request URL targets the application root and
> does not have a trailing slash.

Seems that both values are valid (at least within the CGI portion that
WSGI uses). Ugh, well Werkzeug probably shouldn't
redirect, either. I'll see if I can push the PR [2].

[1]: https://www.python.org/dev/peps/pep-3333/#environ-variables
[2]: https://github.com/pallets/werkzeug/issues/1240

Reply via email to