diff options
author | zagevalo <zagevalo@yandex-team.com> | 2023-03-28 17:39:48 +0300 |
---|---|---|
committer | zagevalo <zagevalo@yandex-team.com> | 2023-03-28 17:39:48 +0300 |
commit | f25d7bca481df0b9d0939384c88cd84f7670becc (patch) | |
tree | 949c498c464d4f1da62c8929bc2affe74355f695 /library/cpp | |
parent | 2804963c6984b1fe5c1a68929ad1d7f0e230eb1a (diff) | |
download | ydb-f25d7bca481df0b9d0939384c88cd84f7670becc.tar.gz |
Added mp4 and avi types to mime detector and some counters fixes in dns-proxy
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/mime/types/mime.cpp | 5 | ||||
-rw-r--r-- | library/cpp/mime/types/mime.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/library/cpp/mime/types/mime.cpp b/library/cpp/mime/types/mime.cpp index 5325f3cc38..144ae392b2 100644 --- a/library/cpp/mime/types/mime.cpp +++ b/library/cpp/mime/types/mime.cpp @@ -101,6 +101,8 @@ const TMimeTypes::TRecord TMimeTypes::Records[] = { {MIME_WEBMANIFEST, "application/manifest+json\0", "webmanifest\0"}, {MIME_CBOR, "application/cbor\0application/x-amz-cbor-1.1\0", "cbor\0"}, {MIME_CSV, "text/csv\0", "csv\0"}, + {MIME_VIDEO_MP4, "video/mp4\0", "mp4\0"}, + {MIME_VIDEO_AVI, "video/x-msvideo\0", "avi\0"}, {MIME_MAX, nullptr, nullptr}, // Additional records @@ -253,4 +255,7 @@ const char* MimeNames[MIME_MAX] = { "ttf", // MIME_TTF // 45 "webmanifest", // MIME_WEBMANIFEST // 46 "cbor", // MIME_CBOR // 47 + "csv", // MIME_CSV // 48 + "mp4", // MIME_VIDEO_MP4 // 49 + "avi", // MIME_VIDEO_AVI // 50 }; diff --git a/library/cpp/mime/types/mime.h b/library/cpp/mime/types/mime.h index efff2058ee..8eaedd001b 100644 --- a/library/cpp/mime/types/mime.h +++ b/library/cpp/mime/types/mime.h @@ -60,6 +60,8 @@ enum MimeTypes { MIME_WEBMANIFEST = 46, MIME_CBOR = 47, MIME_CSV = 48, + MIME_VIDEO_MP4 = 49, + MIME_VIDEO_AVI = 50, MIME_MAX }; |