diff --git a/lib/httpclient/session.rb b/lib/httpclient/session.rb index 80abe028..9d7a79b1 100644 --- a/lib/httpclient/session.rb +++ b/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?