search

Home  >  Q&A  >  body text

node.js - node 出现问题 Can't set headers after they are sent.

这个问题出现次数很少。。。

巴扎黑巴扎黑2783 days ago637

reply all(3)I'll reply

  • 高洛峰

    高洛峰2017-04-17 14:56:11

    The first impression is that the header has been sent. Then when you remove send in your callback, the header will be modified at 204 and 304. Show some code to see

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 14:56:11

    The error is reported because you have repeatedly set the response header. If you have something to search for, don’t ask questions when you don’t agree.

    reply
    0
  • 黄舟

    黄舟2017-04-17 14:56:11

    Please tell me how to solve it

    reply
    0
  • Cancelreply