ngx-restangular
ngx-restangular copied to clipboard
Impossible to set URL encoding strategy
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
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.