projects
/
ttyd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56d26ac
)
http: fix build with lws 1.7
author
Shuanglei Tao
<tsl0922@gmail.com>
Sat, 13 Jun 2020 16:33:35 +0000
(
00:33
+0800)
committer
Shuanglei Tao
<tsl0922@gmail.com>
Sat, 13 Jun 2020 16:33:35 +0000
(
00:33
+0800)
src/http.c
patch
|
blob
|
history
diff --git
a/src/http.c
b/src/http.c
index ae62668de252a84bc1f5c27133b006ca74bc2e83..3297c5c9d6bc47d0efef6669d683fb2c2d8ba857 100644
(file)
--- a/
src/http.c
+++ b/
src/http.c
@@
-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;