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:
@ -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
|
||||
|
Reference in New Issue
Block a user