Function skipIfNeedBe in http-middleware.js should return a value #46
Carregando…
x
Criar uma nova questão referindo esta
Bloquear um utilizador
Nenhuma descrição fornecida.
Eliminar o ramo "%!s()"
Eliminar um ramo é algo permanente. Embora o ramo eliminado possa continuar a existir por um breve período de tempo antes de ser realmente removido, a operação NÃO PODERÁ ser desfeita na maioria dos casos. Quer continuar?
Hi AJ,
first of all, thank you for your awesome work!
Testing around with the new version of greenlock I stumbled across the following exception:
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
node_modules/@root/greenlock-express/http-middleware.js:62:9
If I understood your code correctly, I'd suggest to add a return value to the function skipIfNeedBe of http-middleware.js if the conditions are met.
I just realized, that I used the wrong repository to open the issue. Sorry for that!
If you
rm -rf node_modules
and reinstall, I believe the problem was fixed yesterday:https://git.coolaj86.com/coolaj86/greenlock-express.js/src/branch/master/http-middleware.js
Yes, you are right. The new version does not have this issue. Thanks alot!