From fb3c229483adbb069e444458f3a90fc1e1e48a6a Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Tue, 8 Nov 2016 13:35:18 -0800 Subject: [PATCH] add 303 status code to redirect policy --- src/client.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client.rs b/src/client.rs index 7573000..cfc52d6 100644 --- a/src/client.rs +++ b/src/client.rs @@ -206,7 +206,8 @@ impl<'a> RequestBuilder<'a> { match res.status { StatusCode::MovedPermanently | - StatusCode::Found => { + StatusCode::Found | + StatusCode::SeeOther => { //TODO: turn this into self.redirect_policy.check() if redirect_count > 10 {