summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--request.c3
1 files changed, 2 insertions, 1 deletions
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;