Created
June 30, 2020 10:02
-
-
Save paulmwatson/891db828744eaf1a74189272285b0b49 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const response = await fetch('http://google.com', {redirect: 'manual'}) | |
response.status | |
// => 301 | |
response.headers.get('Location') | |
// => http://www.google.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment