Skip to content

Commit

Permalink
Adding special encodingURI
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenthedev committed Apr 7, 2016
1 parent 1e5d983 commit 123986a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng2-data",
"version": "0.0.24",
"version": "0.0.25",
"description": "Convential HTTP client for Model Data in Angular 2",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/store.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class StoreService {
// url-ify
Object.keys(params).forEach(k => {
this.log(k, {});
queryParams.set(k, typeof params[k] !== 'string' ? JSON.stringify(params[k]) : params[k]);
queryParams.set(k, typeof params[k] !== 'string' ? JSON.stringify(params[k]).replace(/\{/g, '%7B').replace(/\}/g, '%7D') : params[k]);
});

// Create request options
Expand Down

0 comments on commit 123986a

Please sign in to comment.