Open jsoo1 opened 4 years ago
Relative locations are allowed when the status code is a redirect. The location url should resolve to the effective request URI: https://tools.ietf.org/html/rfc7230#section-5.5
The issue:
Request http://example.com/redirect Response { ... statusCode : 303, headers : { Location: "/redirected" ... } }
http://example.com/redirect
{ ... statusCode : 303, headers : { Location: "/redirected" ... } }
Expected: The new request url should be http://example.com/redirected
http://example.com/redirected
Actual: The new request url is /redirected
/redirected
Relative locations are allowed when the status code is a redirect. The location url should resolve to the effective request URI: https://tools.ietf.org/html/rfc7230#section-5.5
The issue:
Request
http://example.com/redirect
Response{ ... statusCode : 303, headers : { Location: "/redirected" ... } }
Expected: The new request url should be
http://example.com/redirected
Actual: The new request url is
/redirected