mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 03:23:07 +00:00
increased responseMsToLive from 0 to 10s, to prevent infinite loops
This commit is contained in:
@@ -45,7 +45,7 @@ export class AuthRequestService {
|
||||
distinctUntilChanged(),
|
||||
map((endpointURL: string) => new AuthPostRequest(this.requestService.generateRequestId(), endpointURL, body, options)),
|
||||
map ((request: PostRequest) => {
|
||||
request.responseMsToLive = 0;
|
||||
request.responseMsToLive = 10 * 1000;
|
||||
return request;
|
||||
}),
|
||||
tap((request: PostRequest) => this.requestService.configure(request)),
|
||||
@@ -60,7 +60,7 @@ export class AuthRequestService {
|
||||
distinctUntilChanged(),
|
||||
map((endpointURL: string) => new AuthGetRequest(this.requestService.generateRequestId(), endpointURL, options)),
|
||||
map ((request: GetRequest) => {
|
||||
request.responseMsToLive = 0;
|
||||
request.responseMsToLive = 10 * 1000;
|
||||
return request;
|
||||
}),
|
||||
tap((request: GetRequest) => this.requestService.configure(request)),
|
||||
|
Reference in New Issue
Block a user