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

Allowing []-style array query parameters without URL-encoding the brackets #135

Merged
merged 3 commits into from
Jul 31, 2015
Merged

Conversation

hendrikstier
Copy link

I also modified the package.json and build.js to reflect updates on the license file referencing.

queryParts.push(encodeURI(key.slice(0, -2)) + '[]=' + encodeURI(rep[k]));
} else {
queryParts.push(encodeURI(key + '=' + rep[k]));
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see #118, maybe it works.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

forget.. encodeURIComponent also encodes the []

@millermedeiros
Copy link
Owner

the interpolate function deserves a refactor in the future (it's getting out of control..) but since behavior is correct and changes are minimal I'll merge it as is. thanks a lot for the contributions!

@millermedeiros millermedeiros merged commit 1f0ae18 into millermedeiros:master Jul 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants