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

Initial commit #1

Closed
wants to merge 33 commits into from
Closed

Initial commit #1

wants to merge 33 commits into from

Conversation

joanniclaborde
Copy link
Contributor

See readme.

@joanniclaborde
Copy link
Contributor Author

@pushred This last commit tests the query strings escaping:

  • The unescaped query string components in the URL are escaped
  • All the query options are escaped before being added to the final URL

For example, with this resource:

var resources = {
  resource: {
    url: 'http://proxy.storyteller.io/api/resource?a=,&b=%2C',
    query: {
      c: ',',
      d: '%2C'
    }
  }
};

The final URL is http://proxy.storyteller.io/api/resource?a=%2C&b=%2C&c=%2C&d=%252C. Note that b is not escaped again, but d is.

@joanniclaborde joanniclaborde mentioned this pull request Nov 5, 2014
@joanniclaborde joanniclaborde mentioned this pull request Feb 27, 2015
@joanniclaborde
Copy link
Contributor Author

Replaced by #3

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

Successfully merging this pull request may close these issues.

1 participant