mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +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) {
|
||||
return statusCode == HttpStatus.SC_MOVED_PERMANENTLY ||
|
||||
statusCode == HttpStatus.SC_MOVED_TEMPORARILY;
|
||||
//org.apache.http.HttpStatus has no enum value for 308!
|
||||
return statusCode == (HttpStatus.SC_TEMPORARY_REDIRECT + 1) ||
|
||||
statusCode == HttpStatus.SC_TEMPORARY_REDIRECT;
|
||||
}
|
||||
|
||||
private LDNActionStatus handleRedirect(CloseableHttpResponse oldresponse,
|
||||
|
Reference in New Issue
Block a user