http.get Parse Error, code: 'HPE_UNEXPECTED_CONTENT_LENGTH'

后端 未结 2 1415
误落风尘
误落风尘 2021-01-14 11:22

I have a simple node script to process some data from my home automation API. Everything worked fine till last Node update. Now, with Node version 4.3.0 or 5.6.0, the http m

2条回答
  •  情歌与酒
    2021-01-14 11:40

    I find this commit log. The problem seems is Content-Length and Transfer-encoding: chunked headers exist together:

    the server is sending both a Content-Length header and a Transfer-Encoding: chunked header, which is a violation of the HTTP spec.

提交回复
热议问题