Skip to content

Commit 2b6f7e5

Browse files
committed
HTTPCLIENT-1946: handling of 308 status as per RFC 7538
1 parent 8ebb629 commit 2b6f7e5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

httpclient5/src/main/java/org/apache/hc/client5/http/impl/DefaultRedirectStrategy.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public boolean isRedirected(
7474
case HttpStatus.SC_MOVED_TEMPORARILY:
7575
case HttpStatus.SC_SEE_OTHER:
7676
case HttpStatus.SC_TEMPORARY_REDIRECT:
77+
case HttpStatus.SC_PERMANENT_REDIRECT:
7778
return true;
7879
default:
7980
return false;

0 commit comments

Comments
 (0)