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

Fixes crash in ConditionalGet when passed a malformed HTTP_IF_MODIFIED_SINCE timestamp #229

Merged
merged 1 commit into from Sep 7, 2011

Conversation

mulder
Copy link
Contributor

@mulder mulder commented Aug 31, 2011

When clients passed a bad IfModifiedSince header we were seing this crash:

NoMethodError: undefined method `>=' for nil:NilClass
    /Users/nick/Code/lib/rack/lib/rack/conditionalget.rb:60:in `modified_since?'

ConditionalGet was only checking if the header existed and not if the casting to_rfc2822 was successful.

raggi added a commit that referenced this pull request Sep 7, 2011
Fixes crash in ConditionalGet when passed a malformed HTTP_IF_MODIFIED_SINCE timestamp
@raggi raggi merged commit c1d71ce into rack:master Sep 7, 2011
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