Thriftpy / thriftpy2

Pure python approach of Apache Thrift.
MIT License
572 stars 91 forks source link

Invalid HTTP URI format in http.py #140

Closed JonnoFTW closed 3 years ago

JonnoFTW commented 4 years ago

https://github.com/Thriftpy/thriftpy2/blob/a8b7873078a6f38a2f052964d439ab888e32fcf4/thriftpy2/http.py#L63

It's missing the / between the port and the path and should be:

HTTP_URI = '{scheme}://{host}:{port}/{path}'

This only occurs if you leave out the / in your path variable.

ethe commented 4 years ago

Thank you for reporting, yes it is a bug.