Skip to content

Commit f1c1de5

Browse files
committed
Add support to redirect when status code received is 308 in RedirectHandler
1 parent 9b38515 commit f1c1de5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/microsoft/graph/httpcore/RedirectHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public boolean isRedirected(
3636
if(statusCode == HttpStatus.SC_MOVED_TEMPORARILY ||
3737
statusCode == HttpStatus.SC_MOVED_PERMANENTLY ||
3838
statusCode == HttpStatus.SC_TEMPORARY_REDIRECT ||
39-
statusCode == HttpStatus.SC_SEE_OTHER)
39+
statusCode == HttpStatus.SC_SEE_OTHER ||
40+
statusCode == 308)
4041
return true;
4142

4243
return false;

0 commit comments

Comments
 (0)