1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-09-22 19:29:21 +03:00

Move GetMimeTypeFromFileName() and related structure to Mayaqua

The structure (containing all mimetypes) occupies almost 700 lines, which are a lot.

This is just the beginning of the refactor plan.
This commit is contained in:
Davide Beatrici
2019-10-20 00:46:36 +02:00
parent 04ecbf843a
commit c3d6ffc533
8 changed files with 749 additions and 730 deletions

13
src/Mayaqua/HTTP.h Normal file
View File

@ -0,0 +1,13 @@
#ifndef HTTP_H
#define HTTP_H
// MIME type
struct HTTP_MIME_TYPE
{
char *Extension;
char *MimeType;
};
char *GetMimeTypeFromFileName(char *filename);
#endif