Answer the question
In order to leave comments, you need to log in
Why is it not possible to set the headers after they are sent to the client?
I'm having a problem redirecting the user to another page after a while:
return(setTimeout(function restart(){
res.render('index')
}, 4000));
Answer the question
In order to leave comments, you need to log in
How does the HTTP protocol work, you certainly do not know?
In short:
This is a text format.
Headers come first
Then double line
feeds Then page data
Заголовок1=значение
Заголовок2=значение
Заголовок3=значение
Тело страницы ....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question