Fix idle bug, when redirected client can't auth
Merge pull request #581 from Elbandi/idlebugfix

Fix idle bug, when redirected client can't auth