Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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

Stan Liberman BuildHive Hiroshi Nakamura
Stan Liberman

...ess stripped

BuildHive

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

Hiroshi Nakamura
Owner

Sorry for late response.

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

Hiroshi Nakamura 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. Stan Liberman
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
2  lib/httpclient/session.rb
View
@@ -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.