Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Some servers have spaces in empty lines, triggering an error parsing unl... #192

Open
wants to merge 1 commit into from

3 participants

@Lirm

...ess stripped

@buildhive

Hiroshi Nakamura » httpclient #104 SUCCESS
This pull request looks good
(what's this?)

@nahi
Owner

Sorry for late response.

Interesting... Can I access the server, or can you provide captured response from the server?

@nahi nahi added the Feedback label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 28, 2014
  1. @Lirm
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/httpclient/session.rb
View
2  lib/httpclient/session.rb
@@ -906,7 +906,7 @@ def parse_header
raise BadResponseError.new('unexpected EOF')
end
line.chomp!
- break if line.empty?
+ break if line.strip.empty?
if line[0] == ?\ or line[0] == ?\t
last = @headers.last[1]
last << ' ' unless last.empty?
Something went wrong with that request. Please try again.