Fix for parsing http response headers