Andrew Boyson / web

Dependents:   oldheating gps motorhome heating

favicon/web-favicon.c

Committer:
andrewboyson
Date:
2019-04-29
Revision:
109:3e82f62c7e1f
Parent:
103:91194cc19bbb

File content as of revision 109:3e82f62c7e1f:

#include "http.h"

//Use http://tomeko.net/online_tools/file_to_hex.php to convert a favicon.ico into hex readable as an array
static const char bytes[] = {
#include "favicon/web-favicon.inc"
};

const char* WebFaviconDate = __DATE__;
const char* WebFaviconTime = __TIME__;
const int   WebFaviconSize = sizeof(bytes);

void WebFavicon()
{
    HttpOk("image/x-icon", "max-age=3600", WebFaviconDate, WebFaviconTime);
    HttpAddData(bytes, WebFaviconSize);
}