You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
Hello,
am having an http action that redirects user to another action when user has met some condition.
the problem is I get frequently get garbage HTML in my browser page like:
This case sometimes happens for me when there's 302 then 304 HTTP responses.
debug: discarding transport
Passport: DeSerialzing User from session 52f254ffa33d553431b2faf6
GET / 302 31ms - 66b
Passport: DeSerialzing User from session 52f254ffa33d553431b2faf6
GET /go 304 27ms
Then I get that garbage HTML in my browser
The text was updated successfully, but these errors were encountered:
Hello, I don't have a test case for this,
but my use case was the following:
# home ('/')
exports.home = function(req, res){
if(user is logged in)
redirect('/chat')
}
# chat ('/chat')
exports.chat = function(req, res){
if(user not logged in)
redirect('/')
else
// every thing is fine
}
Now The error used to happen more often when connection is slow a bit, and I'm logged in
and my location is "/chat" then trying to go to "/", this error happens
as / will redirect me back to /chat.
Hello,
am having an http action that redirects user to another action when user has met some condition.
the problem is I get frequently get garbage HTML in my browser page like:
This case sometimes happens for me when there's 302 then 304 HTTP responses.
Then I get that garbage HTML in my browser
The text was updated successfully, but these errors were encountered: