fix redirect bug in head request where redirects would not be honored