http: fix build with lws 1.7

This commit is contained in:
Shuanglei Tao
2020-06-14 00:33:35 +08:00
parent 56d26accd3
commit 70c12e4afa

View File

@@ -7,6 +7,10 @@
#include "server.h"
#include "utils.h"
#if LWS_LIBRARY_VERSION_MAJOR < 2
#define HTTP_STATUS_FOUND 302
#endif
enum { AUTH_OK, AUTH_FAIL, AUTH_ERROR };
static char *html_cache = NULL;