Andrew Boyson / web

Dependents:   oldheating gps motorhome heating

base/favicon/web-favicon.c

Committer:
andrewboyson
Date:
2020-03-11
Revision:
133:98c6bf14bc37
Parent:
110:8ab752842d25

File content as of revision 133:98c6bf14bc37:

#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);
}