seePermanentRedirectTo() doesn't check destination exists
GaryJones opened this issue · comments
Right now, the seePermanentRedirectTo checks if A sends the
Location` header and 301 status to redirect to B, but doesn't check if B actually exists.
The code should follow redirects, send a request to B, and check for a 200 response and the same URL (i.e. not silently redirected to C).