docs: Fix language

Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
This commit is contained in:
Joachim Van Herwegen 2024-04-05 10:03:58 +02:00
parent 5e60000681
commit 2846c711ab
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@
"@type": "WaterfallHandler", "@type": "WaterfallHandler",
"handlers": [ "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" "@type": "RedirectingErrorHandler"
}, },
{ {

View File

@ -6,7 +6,7 @@ import type { ErrorHandlerArgs } from './ErrorHandler';
import { ErrorHandler } 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 { export class TargetExtractorErrorHandler extends ErrorHandler {
protected readonly errorHandler: ErrorHandler; protected readonly errorHandler: ErrorHandler;

View File

@ -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 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)) { if (metadata.has(SOLID_ERROR.terms.errorResponse, NotFoundHttpError.uri)) {
for (const method of allowedMethods) { 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)) { if (method !== 'PUT' && (method !== 'PATCH' || resourceType === ResourceType.container)) {
allowedMethods.delete(method); allowedMethods.delete(method);
} }