You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Transfer scheme and host to new request when redirected (#20)
* Transfer scheme and host to new request when redirected
This solves a bug that could cause infinite redirections (eg: requesting example.com, being redirected to www.example.com, but requesting again example.com as host hadn't been correctly specified)
* Check that redirect correctly modifies Host to what's specified by the server response
* Move test to new test case, use Decodable inline struct instead of JSONSerialization
* Run swiftformat tool
* Use NIOFoundationCompat helper functions
* Stop using httpbin.org and use the local HttpBin server for the testHttpHostRedirect test
* Reformat files
* Check that redirectURL contains a host and scheme
* Run swiftformat
* Replace assertionFailure with preconditionFailure
0 commit comments