mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 10:04:21 +00:00
coar-notify-7 fix for http status 308 not as an apache constant!
This commit is contained in:
@@ -80,8 +80,9 @@ public class SendLDNMessageAction implements LDNAction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean isRedirect(int statusCode) {
|
private boolean isRedirect(int statusCode) {
|
||||||
return statusCode == HttpStatus.SC_MOVED_PERMANENTLY ||
|
//org.apache.http.HttpStatus has no enum value for 308!
|
||||||
statusCode == HttpStatus.SC_MOVED_TEMPORARILY;
|
return statusCode == (HttpStatus.SC_TEMPORARY_REDIRECT + 1) ||
|
||||||
|
statusCode == HttpStatus.SC_TEMPORARY_REDIRECT;
|
||||||
}
|
}
|
||||||
|
|
||||||
private LDNActionStatus handleRedirect(CloseableHttpResponse oldresponse,
|
private LDNActionStatus handleRedirect(CloseableHttpResponse oldresponse,
|
||||||
|
Reference in New Issue
Block a user