follow location when status code not equal to 302

Signed-off-by: Revamp Software, Inc. <softwarevamp@gmail.com>