Skip to content

Instantly share code, notes, and snippets.

@peterli888
Last active November 29, 2016 23:42
Show Gist options
  • Save peterli888/78ecec20dc3a5079c709022b193029ae to your computer and use it in GitHub Desktop.
Save peterli888/78ecec20dc3a5079c709022b193029ae to your computer and use it in GitHub Desktop.
Write After End error in node.js webserver
you need do sth
if(!res || !res.status || !res.socket || !res.socket.readable)return;
or next()
or 在回调函数前加 return
or 把 response 作为参数传递给其他函数
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment