mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
docs: Fix language
Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
This commit is contained in:
parent
5e60000681
commit
2846c711ab
@ -15,7 +15,7 @@
|
||||
"@type": "WaterfallHandler",
|
||||
"handlers": [
|
||||
{
|
||||
"comment": "Internally redirects are created by throwing a specific error, this handler converts them to the correct response.",
|
||||
"comment": "Redirects are created internally by throwing a specific error; this handler converts them to the correct response.",
|
||||
"@type": "RedirectingErrorHandler"
|
||||
},
|
||||
{
|
||||
|
@ -6,7 +6,7 @@ import type { ErrorHandlerArgs } from './ErrorHandler';
|
||||
import { ErrorHandler } from './ErrorHandler';
|
||||
|
||||
/**
|
||||
* Adds metadata to an error to indicate what the identifier was of the resource originally being targeted.
|
||||
* Adds metadata to an error to indicate the identifier of the originally targeted resource.
|
||||
*/
|
||||
export class TargetExtractorErrorHandler extends ErrorHandler {
|
||||
protected readonly errorHandler: ErrorHandler;
|
||||
|
@ -84,7 +84,7 @@ export class AllowAcceptHeaderWriter extends MetadataWriter {
|
||||
// If we are sure the resource does not exist: only keep methods that can create a new resource.
|
||||
if (metadata.has(SOLID_ERROR.terms.errorResponse, NotFoundHttpError.uri)) {
|
||||
for (const method of allowedMethods) {
|
||||
// Containers can only be created by PUT, documents also by PATCH
|
||||
// Containers can only be created by PUT; documents by PUT or PATCH
|
||||
if (method !== 'PUT' && (method !== 'PATCH' || resourceType === ResourceType.container)) {
|
||||
allowedMethods.delete(method);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user