From a9f8d90d834cb4e8f567c0f7212ba28146a3e5c9 Mon Sep 17 00:00:00 2001 From: Jindra Dolezy Date: Sat, 11 Apr 2015 12:00:27 +0200 Subject: [PATCH] Returning correct server version in 404 responses --- httpd/httpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpd/httpd.c b/httpd/httpd.c index d5fd924..36fcd8a 100644 --- a/httpd/httpd.c +++ b/httpd/httpd.c @@ -323,7 +323,7 @@ static void ICACHE_FLASH_ATTR httpdSentCb(void *arg) { xmitSendBuff(conn); } -static const char *httpNotFoundHeader="HTTP/1.0 404 Not Found\r\nServer: esp8266-httpd/0.1\r\nContent-Type: text/plain\r\nContent-Length: 12\r\n\r\nNot Found.\r\n"; +static const char *httpNotFoundHeader="HTTP/1.0 404 Not Found\r\nServer: esp8266-httpd/"HTTPDVER"\r\nContent-Type: text/plain\r\nContent-Length: 12\r\n\r\nNot Found.\r\n"; //This is called when the headers have been received and the connection is ready to send //the result headers and data.