Add status code accessor to RedirectAttempt (#285)
This commit is contained in:
		
				
					committed by
					
						 Sean McArthur
						Sean McArthur
					
				
			
			
				
	
			
			
			
						parent
						
							c00950085c
						
					
				
				
					commit
					31504388d7
				
			| @@ -539,7 +539,12 @@ impl Future for PendingRequest { | ||||
|                         } | ||||
|                     } | ||||
|                     self.urls.push(self.url.clone()); | ||||
|                     let action = check_redirect(&self.client.redirect_policy, &loc, &self.urls); | ||||
|                     let action = check_redirect( | ||||
|                         &self.client.redirect_policy, | ||||
|                         res.status(), | ||||
|                         &loc, | ||||
|                         &self.urls, | ||||
|                     ); | ||||
|  | ||||
|                     match action { | ||||
|                         redirect::Action::Follow => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user