Create request.js

Fixing HTTP redirects "not carrying pre-defined host-header value when the Location header is not a URL".