Skip to content

Commit f6bf206

Browse files
ci(pre-commit): Apply automatic fixes
1 parent e6986be commit f6bf206

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/AsyncWebServerRequest.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ void AsyncWebServerRequest::send(FS &fs, const String &path, const char *content
2626
}
2727

2828
// Handle compressed version
29-
const String gzPath = path + asyncsrv::T__gz;
30-
File gzFile = fs.open(gzPath, "r");
29+
const String gzPath = path + asyncsrv::T__gz;
30+
File gzFile = fs.open(gzPath, "r");
3131

3232
// Compressed file not found or invalid
3333
if (!gzFile.seek(gzFile.size() - 8)) {
@@ -43,9 +43,9 @@ void AsyncWebServerRequest::send(FS &fs, const String &path, const char *content
4343
gzFile.read(crcInTrailer, 4);
4444
char serverETag[9];
4545
_getEtag(crcInTrailer, serverETag);
46-
46+
4747
// Compare with client's ETag
48-
const AsyncWebHeader* inmHeader = this->getHeader(asyncsrv::T_INM);
48+
const AsyncWebHeader *inmHeader = this->getHeader(asyncsrv::T_INM);
4949
if (inmHeader && inmHeader->value() == serverETag) {
5050
gzFile.close();
5151
this->send(304); // Not Modified

src/WebResponses.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,11 +672,11 @@ void AsyncFileResponse::_setContentTypeFromPath(const String &path) {
672672

673673
/**
674674
* @brief Constructor for AsyncFileResponse that handles file serving with compression support
675-
*
675+
*
676676
* This constructor creates an AsyncFileResponse object that can serve files from a filesystem,
677677
* with automatic fallback to gzip-compressed versions if the original file is not found.
678678
* It also handles ETag generation for caching and supports both inline and download modes.
679-
*
679+
*
680680
* @param fs Reference to the filesystem object used to open files
681681
* @param path Path to the file to be served (without compression extension)
682682
* @param contentType MIME type of the file content (empty string for auto-detection)

0 commit comments

Comments
 (0)