Skip to content

Commit b55f2df

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 5240113 commit b55f2df

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/WebResponses.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -619,14 +619,13 @@ size_t AsyncAbstractResponse::_fillBufferAndProcessTemplates(uint8_t *data, size
619619
* File Response
620620
* */
621621

622-
623622
/**
624623
* @brief Sets the content type based on the file path extension
625-
*
624+
*
626625
* This method determines the appropriate MIME content type for a file based on its
627626
* file extension. It supports both external content type functions (if available)
628627
* and an internal mapping of common file extensions to their corresponding MIME types.
629-
*
628+
*
630629
* @param path The file path string from which to extract the extension
631630
* @note The method modifies the internal _contentType member variable
632631
*/
@@ -639,7 +638,7 @@ void AsyncFileResponse::_setContentTypeFromPath(const String &path) {
639638
#endif
640639
_contentType = getContentType(path);
641640
#else
642-
const char *cpath = path.c_str();
641+
const char *cpath = path.c_str();
643642
const char *dot = strrchr(cpath, '.');
644643

645644
if (!dot) {
@@ -687,7 +686,6 @@ const char *cpath = path.c_str();
687686
#endif
688687
}
689688

690-
691689
/**
692690
* @brief Constructor for AsyncFileResponse that handles file serving with compression support
693691
*

0 commit comments

Comments
 (0)