node.js - nodejs, http, legacy servers, and "HPE_UNEXPECTED_CONTENT_LENGTH" -


running simple http request in nodejs web crawling purposes.

unfortunately, 1 website we're trying crawl configured such has content-length header twice.

this throwing error on nodejs:

error: parse error    @ error (native)    @ socket.socketondata (_http_client.js:363:20)    @ emitone (events.js:96:13)    @ socket.emit (events.js:188:7)    @ readableaddchunk (_stream_readable.js:176:18)    @ socket.readable.push (_stream_readable.js:134:10)    @ tcp.onread (net.js:548:20) bytesparsed: 239, code:'hpe_unexpected_content_length' },   isoperational: true,   bytesparsed: 239,   code: 'hpe_unexpected_content_length'  

i'm trying find workaround doesn't involve downgrading nodejs server... ideas?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -