From 9610c7bd948231589ce8e6f3c57dc27853d04fc7 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 23 Jul 2024 13:55:19 +0930 Subject: [PATCH] Add missing header. Fix the content-type header pair going out of scope. --- test-http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test-http.c b/test-http.c index 5fad509..ec830de 100644 --- a/test-http.c +++ b/test-http.c @@ -17,6 +17,7 @@ #include #define D(x) +#include "ez-tree.h" #include "ez-http.h" // copy to use @@ -57,7 +58,7 @@ static int handle_quit(struct ez_httprequest *r, struct ez_httpresponse *rep) { } 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 = "

It Works!

Quit | Player"; httpresponse_set_response(rep, 200, "Ok"); -- 2.39.2