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

Allow any param #11

Merged
merged 1 commit into from
Aug 30, 2017
Merged

Allow any param #11

merged 1 commit into from
Aug 30, 2017

Conversation

caub
Copy link
Contributor

@caub caub commented Jun 12, 2017

Allow to set max param for a pool, from querystring

@monteslu
Copy link
Member

@caub looks good, can you fix conflicts, and I'll get it merged

test/parse.js Outdated

// test('return last value of repeated parameter', function(t){
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@monteslu is it really necessary this test and behavior?

I think it's more confusing, and also I'd prefer to use URL and URL#searchParams#get (but it takes first value not last)

@mariusa
Copy link

mariusa commented Jul 12, 2017

Why just max? All config parameters should work, eg ssl

@caub caub changed the title max param Allow any param Jul 12, 2017
@caub
Copy link
Contributor Author

caub commented Jul 12, 2017

Renamed, this PR allows anything

var result = url.parse(......., true);
var config = Object.assign(result.query, opts);

@caub
Copy link
Contributor Author

caub commented Aug 4, 2017

@monteslu Is the PR ok? or I close it?

it's like the master branch, just more simple

@monteslu monteslu merged commit cf107b0 into iceddev:master Aug 30, 2017
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.

None yet

3 participants