andreif / uwsgi-tools

curl and proxy for remote uwsgi app server
BSD 3-Clause "New" or "Revised" License
43 stars 11 forks source link

uwsgi_curl strips leading slash #1

Closed deric closed 8 years ago

deric commented 8 years ago

Is it possible to send request including leading /?

a request

uwsgi_curl localhost:3000 /

is translated into:

GET  => generated 17 bytes in 0 msecs (HTTP/1.1 200) 

while standard curl would generate:

GET / => generated 17 bytes in 0 msecs (HTTP/1.1 200)

My backend is sensitive to leading slashes, and I'm unable to send request like /health

$ uwsgi_curl localhost:3000 /health
GET health => generated 81 bytes in 0 msecs (HTTP/1.1 404)
andreif commented 8 years ago

@deric Thanks! Fixed in https://pypi.python.org/pypi/uwsgi-tools/1.0.3

deric commented 8 years ago

Cool, thanks!