mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Store methods in MethodNotAllowedHttpError
This commit is contained in:
@@ -68,7 +68,7 @@ export class SetupHttpHandler extends OperationHttpHandler {
|
||||
switch (operation.method) {
|
||||
case 'GET': return this.handleGet(operation);
|
||||
case 'POST': return this.handlePost(operation);
|
||||
default: throw new MethodNotAllowedHttpError();
|
||||
default: throw new MethodNotAllowedHttpError([ operation.method ]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user