Instead of skipping just one line, properly parse the response headers. [TT: reworded commit message]