diff options
author | sergey <sergey@yandex-team.ru> | 2022-02-10 16:47:29 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:29 +0300 |
commit | 05f59b2581f074c756adaee6b260014ac3a0c3ec (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/cpp/mime | |
parent | 5d8d1af4df7f9cd4acc021f069546c30677e7979 (diff) | |
download | ydb-05f59b2581f074c756adaee6b260014ac3a0c3ec.tar.gz |
Restoring authorship annotation for <sergey@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/mime')
-rw-r--r-- | library/cpp/mime/types/mime.cpp | 2 | ||||
-rw-r--r-- | library/cpp/mime/types/mime.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/mime/types/mime.cpp b/library/cpp/mime/types/mime.cpp index ddab9c94bb..706d776b24 100644 --- a/library/cpp/mime/types/mime.cpp +++ b/library/cpp/mime/types/mime.cpp @@ -250,4 +250,4 @@ const char* MimeNames[MIME_MAX] = { "woff2", // MIME_WOFF2 // 44 "ttf", // MIME_TTF // 45 "webmanifest" // MIME_WEBMANIFEST // 46 -}; +}; diff --git a/library/cpp/mime/types/mime.h b/library/cpp/mime/types/mime.h index 06c126dc8f..05da389ea9 100644 --- a/library/cpp/mime/types/mime.h +++ b/library/cpp/mime/types/mime.h @@ -24,7 +24,7 @@ enum MimeTypes { MIME_EXCEL = MIME_XLS, MIME_PPT = 11, MIME_IMAGE_JPG = 12, - MIME_IMAGE_PJPG = 13, + MIME_IMAGE_PJPG = 13, MIME_IMAGE_PNG = 14, MIME_IMAGE_GIF = 15, MIME_DOCX = 16, @@ -62,7 +62,7 @@ enum MimeTypes { }; extern const char* MimeNames[MIME_MAX]; - + const char* mimetypeByExt(const char* fname, const char* check_ext = nullptr); MimeTypes mimeByStr(const char* mimeStr); MimeTypes mimeByStr(const TStringBuf& mimeStr); |