Closed chriscalo closed 4 years ago
(By the way, I really appreciate that Goldpage calls next()
at all so that later handlers are able to run. Some express integrations assume that no other handlers need to run after their code, which is really frustrating. So please keep calling next()
when Goldpage can't respond to the current request. 🙏)
Fixed & new Goldpage version 0.5.4
published.
Working great, thanks!
I was noticing the following
ERR_HTTP_HEADERS_SENT
error for requests when Goldpage handles the response:It seems that Goldpage is calling
next()
even when it sends a response, so later handlers also try to respond. If I insert the following logic, it fixes things:I think the fix is to not call
next()
when Goldpage sends a response. (Is@universal-adapter/express
callingnext()
even when a response has been sent?)