Fix the content-type header pair going out of scope.
#include <errno.h>
#define D(x)
+#include "ez-tree.h"
#include "ez-http.h"
// copy to use
}
static int handle_root(struct ez_httprequest *req, struct ez_httpresponse *rep) {
- struct ez_pair h0 = ct_text_html;
+ static struct ez_pair h0 = ct_text_html;
const char *msg = "<h1>It Works!</h1><a href='/quit'>Quit</a> | <a href='/'>Player</a>";
httpresponse_set_response(rep, 200, "Ok");