From efa3b4793b60f4979932e9c6c776deef889f5464 Mon Sep 17 00:00:00 2001 From: weifangc Date: Tue, 18 Nov 2025 16:03:37 +0800 Subject: [PATCH] chore: fix some typos in comments Signed-off-by: weifangc --- MixinDebug/AppGroup Server/GCDWebDAVServer/GCDWebDAVServer.m | 4 ++-- .../GCDWebServer/Core/GCDWebServerConnection.h | 2 +- .../GCDWebServer/Responses/GCDWebServerDataResponse.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MixinDebug/AppGroup Server/GCDWebDAVServer/GCDWebDAVServer.m b/MixinDebug/AppGroup Server/GCDWebDAVServer/GCDWebDAVServer.m index eaac9aaa12..9f38130609 100644 --- a/MixinDebug/AppGroup Server/GCDWebDAVServer/GCDWebDAVServer.m +++ b/MixinDebug/AppGroup Server/GCDWebDAVServer/GCDWebDAVServer.m @@ -189,7 +189,7 @@ - (GCDWebServerResponse*)performGET:(GCDWebServerRequest*)request { NSString* itemName = [absolutePath lastPathComponent]; if (([itemName hasPrefix:@"."] && !_allowHiddenItems) || (!isDirectory && ![self _checkFileExtension:itemName])) { - return [GCDWebServerErrorResponse responseWithClientError:kGCDWebServerHTTPStatusCode_Forbidden message:@"Downlading item name \"%@\" is not allowed", itemName]; + return [GCDWebServerErrorResponse responseWithClientError:kGCDWebServerHTTPStatusCode_Forbidden message:@"Downloading item name \"%@\" is not allowed", itemName]; } // Because HEAD requests are mapped to GET ones, we need to handle directories but it's OK to return nothing per http://webdav.org/specs/rfc4918.html#rfc.section.9.4 @@ -451,7 +451,7 @@ - (void)_addPropertyResponseForItem:(NSString*)itemPath resource:(NSString*)reso [xmlString appendFormat:@"%@", GCDWebServerFormatISO8601((NSDate*)[attributes fileCreationDate])]; } - if ((properties & kDAVProperty_LastModified) && isFile && [attributes objectForKey:NSFileModificationDate]) { // Last modification date is not useful for directories as it changes implicitely and 'Last-Modified' header is not provided for directories anyway + if ((properties & kDAVProperty_LastModified) && isFile && [attributes objectForKey:NSFileModificationDate]) { // Last modification date is not useful for directories as it changes implicitly and 'Last-Modified' header is not provided for directories anyway [xmlString appendFormat:@"%@", GCDWebServerFormatRFC822((NSDate*)[attributes fileModificationDate])]; } diff --git a/MixinDebug/AppGroup Server/GCDWebServer/Core/GCDWebServerConnection.h b/MixinDebug/AppGroup Server/GCDWebServer/Core/GCDWebServerConnection.h index 4d59b9f1f5..0b2cdff723 100644 --- a/MixinDebug/AppGroup Server/GCDWebServer/Core/GCDWebServerConnection.h +++ b/MixinDebug/AppGroup Server/GCDWebServer/Core/GCDWebServerConnection.h @@ -165,7 +165,7 @@ NS_ASSUME_NONNULL_BEGIN - (GCDWebServerResponse*)overrideResponse:(GCDWebServerResponse*)response forRequest:(GCDWebServerRequest*)request; /** - * This method is called if any error happens while validing or processing + * This method is called if any error happens while validating or processing * the request or if no GCDWebServerResponse was generated during processing. * * @warning If the request was invalid (e.g. the HTTP headers were malformed), diff --git a/MixinDebug/AppGroup Server/GCDWebServer/Responses/GCDWebServerDataResponse.h b/MixinDebug/AppGroup Server/GCDWebServer/Responses/GCDWebServerDataResponse.h index e5121c3362..0d558b05f6 100644 --- a/MixinDebug/AppGroup Server/GCDWebServer/Responses/GCDWebServerDataResponse.h +++ b/MixinDebug/AppGroup Server/GCDWebServer/Responses/GCDWebServerDataResponse.h @@ -91,7 +91,7 @@ NS_ASSUME_NONNULL_BEGIN /** * Initializes a data response from an HTML template encoded using UTF-8. * - * All occurences of "%variable%" within the HTML template are replaced with + * All occurrences of "%variable%" within the HTML template are replaced with * their corresponding values. */ - (nullable instancetype)initWithHTMLTemplate:(NSString*)path variables:(NSDictionary*)variables;