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:
13
src/Mayaqua/HTTP.h
Normal file
13
src/Mayaqua/HTTP.h
Normal 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
|
Reference in New Issue
Block a user