----- Oryginalna wiadomość -----
> Od: "Roberto De Ioris" <[email protected]>
> Do: "uWSGI developers and users list" <[email protected]>
> Wysłane: piątek, 11 marzec 2011 13:34:36
> Temat: Re: [uWSGI] PATH_INFO
> 
> PATH_INFO will be always url_encoded by the browser/client and will
> be forced
> to a python 3.x string (so a unicode object) by uWSGI.
> 
> Does this not work for you ?
> 
> Can you post an example app ?
> 
> Thanks
> 

$ curl http://t3/łoś/
or
$ curl http://t3/%C5%82o%C5%9B/


from urllib import parse

a = environ['PATH_INFO']
b = parse.urlparse(environ['REQUEST_URI']).path

print(a == b)
False

and should return True :/

-- 
Łukasz Wróblewski
http://www.nri.pl/ - Nowoczesne Rozwiązania Internetowe
http://www.hostowisko.pl/ - Profesjonalny i tani hosting
http://www.katalog-polskich-firm.pl/ - Najlepszy darmowy katalog firm
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to