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

HTTP::Request: follow up fixes #8009

Merged
merged 2 commits into from
Jul 30, 2019

Conversation

asterite
Copy link
Member

Follow up to #8002

@asterite asterite requested a review from RX14 July 29, 2019 22:40
@asterite asterite changed the title HTTP::Request: consider \n in addition to \r\n in optimized path HTTP::Request: follow up fixes Jul 29, 2019
@asterite asterite mentioned this pull request Jul 29, 2019
end

it "parses empty string (EOF), returns nil (no peek)" do
Request.from_io(EmptyIO.new).should be_nil
Copy link
Member

Choose a reason for hiding this comment

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

This is fine, but it's actually the only spec explicitly for a non-peek IO. We should probably run every request spec against both a peekable and non-peekable IO (not in this PR though).

@RX14 RX14 added this to the 0.30.0 milestone Jul 30, 2019
@RX14 RX14 added kind:bug A bug in the code. Does not apply to documentation, specs, etc. performance topic:stdlib:networking labels Jul 30, 2019
@asterite asterite merged commit dc882ea into crystal-lang:master Jul 30, 2019
@asterite asterite deleted the http-optimizations-fixes branch July 30, 2019 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. performance topic:stdlib:networking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants