Fix lint and test issues

This commit is contained in:
Nathan Buckingham
2023-02-07 11:50:42 -05:00
parent 06de559974
commit ce6324a569
5 changed files with 55 additions and 32 deletions

View File

@@ -6,7 +6,6 @@ import { RequestService } from '../data/request.service';
import { RemoteDataBuildService } from '../cache/builders/remote-data-build.service';
import {
HttpHeaders,
HttpXsrfTokenExtractor,
HttpClient,
HttpResponse
} from '@angular/common/http';
@@ -53,15 +52,16 @@ export class ServerAuthRequestService extends AuthRequestService {
.set('Cookie', `${DSPACE_XSRF_COOKIE}=${xsrfToken}`)),
map((headers: HttpHeaders) =>
// Create a new PostRequest using those headers and the given href
new PostRequest(
Object.assign(new PostRequest(
this.requestService.generateRequestId(),
href,
{},
{
headers: headers,
}
))
)
},
),{})
)
);
}
}