Joshua Nelson
d0bd2d5ea9
Use iteration instead of recursion for connect ( #291 )
...
This allows handling larger redirect chains.
Fixes #290
2021-01-05 13:55:26 -08:00
Joshua Nelson
f0245aad23
Fix some clippy lints ( #292 )
...
This commit can be replicated with `cargo +nightly clippy --fix -Z unstable-options`,
plus an edit to fix another `return` missed by clippy.
2021-01-03 20:10:43 -08:00
Joshua Nelson
aeeff40c95
Fix 307/308 redirects (again)
...
- Add unit test
- Use the original method instead of hard-coding GET
2021-01-03 20:31:00 -05:00
Joshua Nelson
498b7137c2
Make tests much easier to debug
...
- Don't panic on the mutex in all tests if a single test fails
- Give a more helpful message if a test handler wasn't registered
- Enable env_logger for tests
2021-01-03 20:26:17 -05:00
Joshua Nelson
37f991fa50
Make sure the redirects doctest actually tests something for 301 redirects
2020-12-05 15:03:47 +01:00
Joshua Nelson
4a3d3c49a1
Note that 307 redirects aren't followed in the docs
2020-12-05 15:03:47 +01:00
Joshua Nelson
6bab430d29
Only follow 307/308 redirects for methods without a body
2020-12-05 15:03:47 +01:00
Joshua Nelson
8d21052c7e
Follow 307/308 redirects
2020-12-05 15:03:47 +01:00