You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2018/10/21 11:42:32 UTC
[3/3] httpcomponents-client git commit: HTTPCLIENT-1946: handling of
308 status as per RFC 7538
HTTPCLIENT-1946: handling of 308 status as per RFC 7538
Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-client/commit/2b6f7e53
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-client/tree/2b6f7e53
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-client/diff/2b6f7e53
Branch: refs/heads/master
Commit: 2b6f7e53d0cd63ab333466d79b0f618656daa940
Parents: 8ebb629
Author: Oleg Kalnichevski <ol...@apache.org>
Authored: Sun Oct 21 13:40:46 2018 +0200
Committer: Oleg Kalnichevski <ol...@apache.org>
Committed: Sun Oct 21 13:40:46 2018 +0200
----------------------------------------------------------------------
.../org/apache/hc/client5/http/impl/DefaultRedirectStrategy.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/httpcomponents-client/blob/2b6f7e53/httpclient5/src/main/java/org/apache/hc/client5/http/impl/DefaultRedirectStrategy.java
----------------------------------------------------------------------
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 a86ab32..ed82bfa 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;