Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

encode URLs when calling a service inside another middleware #33

Open
picsoung opened this issue Jan 5, 2015 · 0 comments
Open

encode URLs when calling a service inside another middleware #33

picsoung opened this issue Jan 5, 2015 · 0 comments

Comments

@picsoung
Copy link

picsoung commented Jan 5, 2015

usecase that i just encountered.

A middleware in service A, is calling service B.
using http.get(url)

But in my url variable I had some parameters with whitespace so it looked like
https://fd1ce27f-d10f592b97db.my.apitools.com/estimates/price?start_point=carre rocafort 80&end_point=carrer napols 180&channel=pandas

and gives me back a 400.

but if I converts " " to %20 it works.

My point: have something that does this conversation automatically. or acceptswhitespaces
Or have better error message.

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant