When using the Ethon adapter and when the response_headers is an empty string, this code produces nil
|
# Hard to believe that Ethon wouldn't parse out the headers into |
|
# an array; probably overlooked it. Anyway, let's do it ourselves: |
|
headers = response_headers.split(/\r?\n/)[1..-1] |
which then causes a crash when calling map on it:
|
response_headers: headers.map{ |header| header.split(/:\s/) }.to_h, |
When using the Ethon adapter and when the
response_headersis an empty string, this code producesnilhttplog/lib/httplog/adapters/ethon.rb
Lines 29 to 31 in 730c301
which then causes a crash when calling
mapon it:httplog/lib/httplog/adapters/ethon.rb
Line 40 in 730c301