@@ -2334,7 +2334,7 @@ inline unsigned int str2tag(const std::string &s) {
2334
2334
2335
2335
namespace udl {
2336
2336
2337
- inline constexpr unsigned int operator " " _ (const char *s, size_t l) {
2337
+ inline constexpr unsigned int operator " " _t (const char *s, size_t l) {
2338
2338
return str2tag_core (s, l, 0 );
2339
2339
}
2340
2340
@@ -2348,59 +2348,59 @@ find_content_type(const std::string &path,
2348
2348
auto it = user_data.find (ext);
2349
2349
if (it != user_data.end ()) { return it->second .c_str (); }
2350
2350
2351
- using udl::operator " " _ ;
2351
+ using udl::operator " " _t ;
2352
2352
2353
2353
switch (str2tag (ext)) {
2354
2354
default : return nullptr ;
2355
- case " css" _ : return " text/css" ;
2356
- case " csv" _ : return " text/csv" ;
2357
- case " txt" _ : return " text/plain" ;
2358
- case " vtt" _ : return " text/vtt" ;
2359
- case " htm" _ :
2360
- case " html" _ : return " text/html" ;
2361
-
2362
- case " apng" _ : return " image/apng" ;
2363
- case " avif" _ : return " image/avif" ;
2364
- case " bmp" _ : return " image/bmp" ;
2365
- case " gif" _ : return " image/gif" ;
2366
- case " png" _ : return " image/png" ;
2367
- case " svg" _ : return " image/svg+xml" ;
2368
- case " webp" _ : return " image/webp" ;
2369
- case " ico" _ : return " image/x-icon" ;
2370
- case " tif" _ : return " image/tiff" ;
2371
- case " tiff" _ : return " image/tiff" ;
2372
- case " jpg" _ :
2373
- case " jpeg" _ : return " image/jpeg" ;
2374
-
2375
- case " mp4" _ : return " video/mp4" ;
2376
- case " mpeg" _ : return " video/mpeg" ;
2377
- case " webm" _ : return " video/webm" ;
2378
-
2379
- case " mp3" _ : return " audio/mp3" ;
2380
- case " mpga" _ : return " audio/mpeg" ;
2381
- case " weba" _ : return " audio/webm" ;
2382
- case " wav" _ : return " audio/wave" ;
2383
-
2384
- case " otf" _ : return " font/otf" ;
2385
- case " ttf" _ : return " font/ttf" ;
2386
- case " woff" _ : return " font/woff" ;
2387
- case " woff2" _ : return " font/woff2" ;
2388
-
2389
- case " 7z" _ : return " application/x-7z-compressed" ;
2390
- case " atom" _ : return " application/atom+xml" ;
2391
- case " pdf" _ : return " application/pdf" ;
2392
- case " js" _ :
2393
- case " mjs" _ : return " application/javascript" ;
2394
- case " json" _ : return " application/json" ;
2395
- case " rss" _ : return " application/rss+xml" ;
2396
- case " tar" _ : return " application/x-tar" ;
2397
- case " xht" _ :
2398
- case " xhtml" _ : return " application/xhtml+xml" ;
2399
- case " xslt" _ : return " application/xslt+xml" ;
2400
- case " xml" _ : return " application/xml" ;
2401
- case " gz" _ : return " application/gzip" ;
2402
- case " zip" _ : return " application/zip" ;
2403
- case " wasm" _ : return " application/wasm" ;
2355
+ case " css" _t : return " text/css" ;
2356
+ case " csv" _t : return " text/csv" ;
2357
+ case " txt" _t : return " text/plain" ;
2358
+ case " vtt" _t : return " text/vtt" ;
2359
+ case " htm" _t :
2360
+ case " html" _t : return " text/html" ;
2361
+
2362
+ case " apng" _t : return " image/apng" ;
2363
+ case " avif" _t : return " image/avif" ;
2364
+ case " bmp" _t : return " image/bmp" ;
2365
+ case " gif" _t : return " image/gif" ;
2366
+ case " png" _t : return " image/png" ;
2367
+ case " svg" _t : return " image/svg+xml" ;
2368
+ case " webp" _t : return " image/webp" ;
2369
+ case " ico" _t : return " image/x-icon" ;
2370
+ case " tif" _t : return " image/tiff" ;
2371
+ case " tiff" _t : return " image/tiff" ;
2372
+ case " jpg" _t :
2373
+ case " jpeg" _t : return " image/jpeg" ;
2374
+
2375
+ case " mp4" _t : return " video/mp4" ;
2376
+ case " mpeg" _t : return " video/mpeg" ;
2377
+ case " webm" _t : return " video/webm" ;
2378
+
2379
+ case " mp3" _t : return " audio/mp3" ;
2380
+ case " mpga" _t : return " audio/mpeg" ;
2381
+ case " weba" _t : return " audio/webm" ;
2382
+ case " wav" _t : return " audio/wave" ;
2383
+
2384
+ case " otf" _t : return " font/otf" ;
2385
+ case " ttf" _t : return " font/ttf" ;
2386
+ case " woff" _t : return " font/woff" ;
2387
+ case " woff2" _t : return " font/woff2" ;
2388
+
2389
+ case " 7z" _t : return " application/x-7z-compressed" ;
2390
+ case " atom" _t : return " application/atom+xml" ;
2391
+ case " pdf" _t : return " application/pdf" ;
2392
+ case " js" _t :
2393
+ case " mjs" _t : return " application/javascript" ;
2394
+ case " json" _t : return " application/json" ;
2395
+ case " rss" _t : return " application/rss+xml" ;
2396
+ case " tar" _t : return " application/x-tar" ;
2397
+ case " xht" _t :
2398
+ case " xhtml" _t : return " application/xhtml+xml" ;
2399
+ case " xslt" _t : return " application/xslt+xml" ;
2400
+ case " xml" _t : return " application/xml" ;
2401
+ case " gz" _t : return " application/gzip" ;
2402
+ case " zip" _t : return " application/zip" ;
2403
+ case " wasm" _t : return " application/wasm" ;
2404
2404
}
2405
2405
}
2406
2406
0 commit comments