Closed hipstermojo closed 3 years ago
The linting issues with Clippy are technically outside the scope of this PR so I'm not sure if I should edit that part or not.
Merged the exact same commits in https://github.com/http-rs/surf/pull/293 - for some reason there was still a rebase issue here.
Thanks!!
This fix will require a clone of the original base URL which can then be joined to the value in the
LOCATION
header if it is a relative path. Previously this would simply return an Error for RelativeURLWithoutBase.An example of such a URL is https://blog.thomasheartman.com/posts/on-generics-and-associated-types which would redirect to add a trailing slash.