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

Simplified the URLMapping logic and added case insensitivity to domain matching #668

Closed
wants to merge 1 commit into from

Conversation

jamesdaniels
Copy link

So we recently ran into a bug and realized that the domain matching in Rack::URLMap is case-sensitive, ahhhhh!!!!

Anyway, I fixed it.

While exercising the tests I realized this bit (!host && (hHost == sName || hHost == sName+':'+sPort)) was a case never hit; is there something that I'm missing/breaking by taking it out? All the tests are green.

@jamesdaniels
Copy link
Author

:shipit:

@jamesdaniels
Copy link
Author

/bump /bump we're still having to run a fork here.

@raggi raggi added this to the Rack 1.5.3 milestone Jul 5, 2014
@jamesdaniels
Copy link
Author

/bump

|| (!host && (hHost == sName || hHost == sName+':'+sPort))
next
end
next unless hHost && hHost.casecmp(host).zero? || sName.casecmp(host).zero? if host
Copy link
Member

Choose a reason for hiding this comment

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

The port matching logic has been removed here.

@raggi
Copy link
Member

raggi commented Jul 18, 2014

/bump.... lol

@raggi raggi closed this in 2754224 Jul 18, 2014
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

2 participants