Open stylpe opened 10 years ago
And I just figured out why. Tornado has percent-decoded the path that is passed to request_handler, and it is not re-percent-encoded before being used in the HTTPRequest. I was able to work around it by escaping my request url:
curl 'http://localhost:8888/proxy/http://jenkins:8080/job/Test%2520Job/api/json?pretty=true' -D -
I'm using corsa to proxy a Jenkins server. We have jobs with spaces in the name.
When I try the following:
curl 'http://localhost:8888/proxy/http://jenkins:8080/job/Test%20Job/api/json?pretty=true' -D -
I get:
Other jobs (without space in the name) work fine.