readylan / webiopi

Automatically exported from code.google.com/p/webiopi
0 stars 0 forks source link

Patch for percent-encoded URL's #100

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Sometimes, HTTP requests contain URL's that have paths which contain percent 
encoded characters (e.g. "%2F" for the "/"). I came across this as I was 
working with Swagger UI for the testing console.

If WebIOPi receives such a request, it fails with a "not found" error. The 
attached patch mitigates this problem for Python 2 and 3.

So if anyone also has or gets this problem, here is a solution for that.

Andreas

Original issue reported on code.google.com by andreas....@googlemail.com on 30 Apr 2014 at 3:31

Attachments: