X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/15f84bb8f5b910de40f081ee5e8ed847c592ea17..c58c53dba90fdc19d38f5e5d6957f2ede2a740f3:/Projects/Webserver/Lib/HTTPServerApp.h diff --git a/Projects/Webserver/Lib/HTTPServerApp.h b/Projects/Webserver/Lib/HTTPServerApp.h index 33a647bfe..47b810845 100644 --- a/Projects/Webserver/Lib/HTTPServerApp.h +++ b/Projects/Webserver/Lib/HTTPServerApp.h @@ -40,6 +40,8 @@ #include #include + #include + #include #include @@ -49,7 +51,6 @@ { WEBSERVER_STATE_OpenRequestedFile, /**< Currently opening requested file */ WEBSERVER_STATE_SendResponseHeader, /**< Currently sending HTTP response headers to the client */ - WEBSERVER_STATE_SendMIMETypeHeader, /**< Currently sending HTTP MIME type header to the client */ WEBSERVER_STATE_SendData, /**< Currently sending HTTP page data to the client */ WEBSERVER_STATE_Closing, /**< Ready to close the connection to the client */ WEBSERVER_STATE_Closed, /**< Connection closed after all data sent */ @@ -59,8 +60,8 @@ /** Type define for a MIME type handler. */ typedef struct { - char Extension[4]; /**< 3 or less character file extension */ - char MIMEType[30]; /**< Appropriate MIME type to send when the extension is encountered */ + char* Extension; /**< File extension (no leading '.' character) */ + char* MIMEType; /**< Appropriate MIME type to send when the extension is encountered */ } MIME_Type_t; /* Macros: */ @@ -74,7 +75,6 @@ #if defined(INCLUDE_FROM_HTTPSERVERAPP_C) static void HTTPServerApp_OpenRequestedFile(void); static void HTTPServerApp_SendResponseHeader(void); - static void HTTPServerApp_SendMIMETypeHeader(void); static void HTTPServerApp_SendData(void); #endif