httpd: Use newly created LWIP_VERSION_STRING

This commit is contained in:
Dirk Ziegelmeier 2016-05-04 10:24:12 +02:00
parent 05961a27cf
commit 4a6c444a17
3 changed files with 3 additions and 1 deletions

View File

@ -79,6 +79,7 @@
* about an unknown extension, make sure to add it (and its doctype) to
* the 'g_psHTTPHeaders' list.
*/
#include "lwip/init.h"
#include "lwip/apps/httpd.h"
#include "lwip/debug.h"
#include "lwip/stats.h"

View File

@ -108,6 +108,7 @@ int deflate_level = 10; /* default compression level, can be changed via command
/* define this to get the header variables we use to build HTTP headers */
#define LWIP_HTTPD_DYNAMIC_HEADERS 1
#define LWIP_HTTPD_SSI 1
#include "lwip/init.h"
#include "../httpd_structs.h"
#include "lwip/apps/fs.h"

View File

@ -87,7 +87,7 @@
/** This string is passed in the HTTP header as "Server: " */
#ifndef HTTPD_SERVER_AGENT
#define HTTPD_SERVER_AGENT "lwIP/1.3.1 (http://savannah.nongnu.org/projects/lwip)"
#define HTTPD_SERVER_AGENT "lwIP/"LWIP_VERSION_STRING" (http://savannah.nongnu.org/projects/lwip)"
#endif
/** Set this to 1 if you want to include code that creates HTTP headers