smocker-dev / smocker

Smocker is a simple and efficient HTTP mock server and proxy
https://smocker.dev
MIT License
1.14k stars 61 forks source link

Url encoded path params are not preserved #232

Closed andrcuns closed 2 years ago

andrcuns commented 2 years ago

Hi,

Great project! Found it to be quite useful but encountered an issue.

It seems that url encoded path parameters are not preserved when proxied. By the looks of it, path is always decoded and then left like that.

My endpoint would be calling something like "/api/v4/projects/encoded%2Fpath" but the proxy would then call "/api/v4/projects/encoded/path" which will yield in 404 since api path like that doesn't exist.

Thiht commented 2 years ago

Thanks for the report, this will be fixed in the next release :)

andrcuns commented 2 years ago

Thanks for such a quick fix 🎉