Skip to content

Allow any param - #11

Merged
monteslu merged 1 commit into
iceddev:masterfrom
caub:max
Aug 30, 2017
Merged

monteslu merged 1 commit into
iceddev:masterfrom
caub:max

Conversation

@caub

@caub caub commented Jun 12, 2017

Copy link
Copy Markdown
Contributor

Allow to set max param for a pool, from querystring

@monteslu

Copy link
Copy Markdown
Member

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

Comment thread test/parse.js Outdated
t.end();
}); No newline at end of file

// test('return last value of repeated parameter', function(t){

Copy link
Copy Markdown
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

mariusa commented Jul 12, 2017

Copy link
Copy Markdown

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

@caub caub changed the title max param Allow any param Jul 12, 2017
@caub

caub commented Jul 12, 2017 •

Copy link
Copy Markdown
Contributor Author

Renamed, this PR allows anything

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

@caub

caub commented Aug 4, 2017

Copy link
Copy Markdown
Contributor Author

@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.

3 participants