summaryrefslogtreecommitdiff
path: root/anteraja.c
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-08-01 14:21:35 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-08-01 14:21:35 +0800
commit31a23ff4d20d7b89d3284eaecd34cd794d9738c4 (patch)
treeb55e865065a7e2e11b625541ab366f8df2a1a614 /anteraja.c
parent7650728665be1416237209c8a10355efebf8beef (diff)
No curl call in Anteraja implementation
Diffstat (limited to 'anteraja.c')
-rw-r--r--anteraja.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/anteraja.c b/anteraja.c
index 3706f2e..88172b4 100644
--- a/anteraja.c
+++ b/anteraja.c
@@ -64,10 +64,12 @@ const char **anteraja_init(char *provisions[])
prefix = malloc(strlen(provisions[PREFIX]) + 1);
strcpy(prefix, provisions[PREFIX]);
}
- shipping->headers = curl_slist_append(shipping->headers, "Content-Type:application/json");
static const char *status_trail[] = { "status", NULL };
shipping->status_trail = status_trail;
- static const char *fields[] = { "access-key-id", "secret-access-key", NULL };
+ /* Base path is already set at this point,
+ so the slot can be used for the content type header. */
+ provisions[BASE_PATH] = "application/json";
+ static const char *fields[] = { "access-key-id", "secret-access-key", "Content-Type" };
return fields;
}