Fix bug that assumed there will always be a Content-Type: header

Some places don't include a Content-Type: header in redirects.