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

encode URLs when calling a service inside another middleware #33

Description

@picsoung

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions