Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to set URL encoding strategy #123

Open
kotmatpockuh opened this issue Jan 9, 2018 · 1 comment
Open

Impossible to set URL encoding strategy #123

kotmatpockuh opened this issue Jan 9, 2018 · 1 comment

Comments

@kotmatpockuh
Copy link

function encodeUriQuery(val, pctEncodeSpaces?) {
      return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));
    }

it's impossible to specify anywhere: whether I want to EncodeSpaces or not

@greeny88
Copy link

I'm trying to figure this out as well. @kotmatpockuh did you figure anything out? I tried adding an HttpInterceptor provider to see if I can handle the encoding there but that doesn't appear to be firing.

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

No branches or pull requests

2 participants