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 regexp of RouteSet's conditions[:request_method] #20787

Closed
wants to merge 1 commit into from

Conversation

yui-knk
Copy link
Contributor

@yui-knk yui-knk commented Jul 6, 2015

RFC2616 defines Request-Line which includes method token
is separated by SP characters.
So we should not match it with multiline anchors.

cf: http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1

@arthurnn
Copy link
Member

arthurnn commented Oct 1, 2015

Make sense. Can we add a test case for this?
thanks

@yui-knk
Copy link
Contributor Author

yui-knk commented Oct 2, 2015

This method was removed by 6c48d93.
I will rebase it.

@yui-knk
Copy link
Contributor Author

yui-knk commented Oct 2, 2015

ref: 0b476de

RFC2616 defines Request-Line which includes method token
is separated by SP characters.
So we should not match it with multiline anchors.

cf: http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1
@yui-knk
Copy link
Contributor Author

yui-knk commented Oct 3, 2015

@arthurnn I rebased. And change actionpack/test/dispatch/mapper_test.rb, so I think we have enough test cases. If there are missed test cases, I will write :)

@yui-knk
Copy link
Contributor Author

yui-knk commented Oct 3, 2015

Please DO NOT merge this, until #21849 is determined to be merged or not.

@pixeltrix
Copy link
Contributor

Closing as #21849 has been merged

@pixeltrix pixeltrix closed this Oct 12, 2015
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