fix infinite redirects
https://github.com/igrigorik/em-http-request/issues/254