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.

Author orsenthil
Recipients demian.brecht, facundobatista, fdrake, maarten, martin.panter, orsenthil, quentel, remi.lapeyre, v+python
Date 2020-12-01.22:40:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1606862405.36.0.997343301342.issue10486@roundup.psfhosted.org>
In-reply-to
Content
I spent some time reviewing and researching the specification. It also says

   The server is not required to create meta-variables for all the
   header fields that it receives.  

And this in issue, open since 2010, we have issue two different set of variables one from Apache and from Nginx. So, it Is not certain if http.server should be alinged it any or all, and plus if anything is required.

The discussion on QUERY_STRING was noted, but as Pierre pointed out it was set too

        for k in ('QUERY_STRING', 'REMOTE_HOST', 'CONTENT_LENGTH',
                  'HTTP_USER_AGENT', 'HTTP_COOKIE', 'HTTP_REFERER'):
            env.setdefault(k, "")

For cosmetic purpose, I could remove the existing if condition - https://github.com/python/cpython/pull/23604

I am not sure if we need to add other variables with an empty string value for any reason. 

As a maintainer, I think, we should close this issue.

If there is a bug report, like issue5054, then that is a valid issue, and we should fix it.  If there any specific issues raised with parsing or lack of "required" meta variable that caused the application to break, even that could be fixed.

I am closing this issue with a cosmetic change that stemmed out from the discussion - https://github.com/python/cpython/pull/23604
History
Date User Action Args
2020-12-01 22:40:05orsenthilsetrecipients: + orsenthil, fdrake, facundobatista, v+python, quentel, martin.panter, demian.brecht, remi.lapeyre, maarten
2020-12-01 22:40:05orsenthilsetmessageid: <1606862405.36.0.997343301342.issue10486@roundup.psfhosted.org>
2020-12-01 22:40:05orsenthillinkissue10486 messages
2020-12-01 22:40:04orsenthilcreate