Re: REMOTE_ADDR and proxys

Robert Collins <[email protected]> Mon, 13 Oct 2014 10:38:59 +1300
Newsgroups gmane.comp.python.web
Message-ID <CAJ3HoZ0cFKkb4C=Ykscp+rqShVP_TDT+ppMoTdaEJWC1XrXVeA@mail.gmail.com>
On 30 September 2014 11:47, Alan Kennedy <[email protected]> wrote:

> [Robert]
>> So it sounds like it should be the responsibility of a middleware to
>> renormalize the environment?
>
> In order for that to be the case, you have strictly define what
> "normalization" means.

For a given deployment its well defined. I agree that in general its not.

> I believe that it is not possible to fully specify "normalization", and that
> any attempt to do so is futile.
>
> If you want to attempt it for the specific scenarios that your particular
> application has to deal with, then by all means code your version of
> "normalization" into your application. Or write some middleware to do it.
>
> But trying to make "normalization" a part of a WSGI-style specification is
> impossible.

I don't recall proposing that it should be in a WSGI-style spec.

-Rob

-- 
Robert Collins <[email protected]>
Distinguished Technologist
HP Converged Cloud
_______________________________________________
Web-SIG mailing list
[email protected]
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: https://mail.python.org/mailman/options/web-sig/gcpw-web-sig%40m.gmane.org