From 86c58f25f5298841d4028e0393b9c49d9e476644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= 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.2.3