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

Change res.links() to also accept array #2702

Closed
wants to merge 3 commits into from

Conversation

xdc0
Copy link

@xdc0 xdc0 commented Jul 10, 2015

No description provided.

}).join(', '));
};
if (Array.isArray(links)) {
var attrTest = /^[a-z][a-z-*]+$/;

Choose a reason for hiding this comment

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

/^[\w!#$&+.^|~-]+*?$/` would be the exact same as the productions in rfc5988 (see the link-extension production)

Copy link
Author

Choose a reason for hiding this comment

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

This regexp allows for numeric-only attributes to be allowed. Check this test

There is a bit more conversation about this here on #2619 This PR is a continuation of that, since the original author hasn't responded for a while.

@tunniclm
Copy link
Contributor

tunniclm commented Feb 8, 2016

I don't see any unresolved feedback for this pr, is it ready to go or does it need further review?

cc: @chuym @dougwilson

@jonathanong
Copy link
Member

maybe just use another library? @jshttp could use a link stringifier https://github.com/ileri/http-header-link

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.

None yet

6 participants