mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Support empty PATCH requests
This commit is contained in:
@@ -47,6 +47,12 @@ export class SparqlUpdatePatchHandler extends PatchHandler {
|
||||
// Verify the patch
|
||||
const { source, identifier, patch } = input;
|
||||
const op = (patch as SparqlUpdatePatch).algebra;
|
||||
|
||||
// In case of a NOP we can skip everything
|
||||
if (op.type === Algebra.types.NOP) {
|
||||
return [];
|
||||
}
|
||||
|
||||
this.validateUpdate(op);
|
||||
|
||||
return this.applyPatch(source, identifier, op);
|
||||
|
||||
Reference in New Issue
Block a user