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

Rack 1.5: Use equal? to compare form_input to rack.input #756

Merged
merged 1 commit into from Nov 14, 2014
Merged

Rack 1.5: Use equal? to compare form_input to rack.input #756

merged 1 commit into from Nov 14, 2014

Conversation

filipegiusti
Copy link

Backport to rack 1.5 of #588 by @statianzo

It's really just a cherry-pick without changes. But that's all I can do to make this be merged faster on rack 1.5.

Using equal? provides consistent results of equality between 1.8, 1.9,
and 2.0 when comparing Tempfile objects.

In 1.8, == will change the position of the Tempfile.
In 1.9+, == compares Tempfiles correctly.

In 1.8, eql? compares Tempfiles correctly
In 1.9+, t.eql?(t) always returns false
filipegiusti referenced this pull request Nov 13, 2014
Using equal? provides consistent results of equality between 1.8, 1.9,
and 2.0 when comparing Tempfile objects.

In 1.8, == will change the position of the Tempfile.
In 1.9+, == compares Tempfiles correctly.

In 1.8, eql? compares Tempfiles correctly
In 1.9+, t.eql?(t) always returns false
spastorino added a commit that referenced this pull request Nov 14, 2014
Rack 1.5: Use equal? to compare form_input to rack.input
@spastorino spastorino merged commit bf6dc2f into rack:rack-1.5 Nov 14, 2014
@filipegiusti filipegiusti deleted the fix-large-posts branch November 14, 2014 15:37
dblock added a commit to ruby-grape/grape that referenced this pull request May 7, 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