From 2b6f7e53d0cd63ab333466d79b0f618656daa940 Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Sun, 21 Oct 2018 13:40:46 +0200 Subject: [PATCH] HTTPCLIENT-1946: handling of 308 status as per RFC 7538 --- .../org/apache/hc/client5/http/impl/DefaultRedirectStrategy.java | 1 + 1 file changed, 1 insertion(+) diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/DefaultRedirectStrategy.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/DefaultRedirectStrategy.java index a86ab32dd..ed82bfaae 100644 --- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/DefaultRedirectStrategy.java +++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/DefaultRedirectStrategy.java @@ -74,6 +74,7 @@ public class DefaultRedirectStrategy implements RedirectStrategy { case HttpStatus.SC_MOVED_TEMPORARILY: case HttpStatus.SC_SEE_OTHER: case HttpStatus.SC_TEMPORARY_REDIRECT: + case HttpStatus.SC_PERMANENT_REDIRECT: return true; default: return false;