fixed logout page reload not working with post-data request
a 401 http response will trigger a page reload now