Fixed bug in 302 response code