-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Browser hangs if pug templates are used #12
Comments
This is my code stream.useAllAutoTags(true);
stream.streamBefore('_header');
stream.streamAfter('_footer');
app.get('/', stream.stream(), (req,res) => {
res.stream('index');
res.end
}); |
I haven't touched this project in years, so I'm not as familiar as I once was. That said, I did notice a difference between your code snippet and the readme. You may need to update your code snippet by replacing |
I am afraid that won't work due to the |
Oh thanks, you're right. I did notice that your code snippet doesn't call |
Have you checked with pug, I think there may be some problem when using res.end() and the response is not flushed with the last chunk, the browser hangs for a long time without any error and the last chunk is not sent to the browser.
The text was updated successfully, but these errors were encountered: