From 86c58f25f5298841d4028e0393b9c49d9e476644 Mon Sep 17 00:00:00 2001 From: ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ Date: Thu, 9 Feb 2023 20:30:28 +0800 Subject: The headers might be lost before --- request.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/request.c b/request.c index eedb597..e8dfcf7 100644 --- a/request.c +++ b/request.c @@ -136,7 +136,8 @@ void request(void (*handler)(interchange_response *), void (*callback)(void *), sprintf(post, "%s%s=%s", post, pair.key, pair.value); } strcpy(attr.requestMethod, "POST"); - const char *headers[] = { "Content-Type", "application/x-www-form-urlencoded", NULL }; + static const char *headers[] = { "Content-Type", + "application/x-www-form-urlencoded", NULL }; attr.requestHeaders = headers; attr.requestData = post; attr.requestDataSize = length + 1; -- cgit v1.3