ngx-restangular icon indicating copy to clipboard operation
ngx-restangular copied to clipboard

Impossible to set URL encoding strategy

Open kotmatpockuh opened this issue 7 years ago • 1 comments

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

kotmatpockuh avatar Jan 09 '18 08:01 kotmatpockuh

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.

greeny88 avatar Jun 13 '18 21:06 greeny88