1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

Make getContentType available for 3rd party usage (#7254)

* Refactored to make getContentType public for 3rd party use.

* Added missing "jpeg" extension

* Use getContentType() from mime namespace.

* Also add .jpeg extension
This commit is contained in:
vdeconinck
2020-04-30 05:36:42 +02:00
committed by GitHub
parent 668b33ddf1
commit a9cf12fcf0
4 changed files with 26 additions and 59 deletions

View File

@ -1,6 +1,7 @@
#ifndef __MIMETABLE_H__
#define __MIMETABLE_H__
#include "WString.h"
namespace mime
{
@ -16,6 +17,7 @@ enum type
png,
gif,
jpg,
jpeg,
ico,
svg,
ttf,
@ -41,7 +43,8 @@ struct Entry
extern const Entry mimeTable[maxType];
String getContentType(const String& path);
}
#endif