feat: Set Accept-Patch header.

This commit is contained in:
Ruben Verborgh
2021-01-26 10:30:05 +01:00
committed by Joachim Van Herwegen
parent 394e28b69d
commit 153d2d9fe4
4 changed files with 12 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ describe.each(stores)('An LDP handler without auth using %s', (name, { storeUrn,
expect(response.statusCode).toBe(200);
expect(response._getBuffer().toString()).toContain('TESTFILE0');
expect(response.getHeaders().link).toBe(`<${LDP.Resource}>; rel="type"`);
expect(response.getHeaders()['accept-patch']).toBe('application/sparql-update');
expect(response.getHeaders()['ms-author-via']).toBe('SPARQL');
// DELETE