Set content length for redirects

Python keeps reading the 302 response until it gets an EOF, and without
content-length, it hangs indefinitely.