diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-08-01 14:21:35 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-08-01 14:21:35 +0800 |
commit | 31a23ff4d20d7b89d3284eaecd34cd794d9738c4 (patch) | |
tree | b55e865065a7e2e11b625541ab366f8df2a1a614 /anteraja.c | |
parent | 7650728665be1416237209c8a10355efebf8beef (diff) |
No curl call in Anteraja implementation
Diffstat (limited to 'anteraja.c')
-rw-r--r-- | anteraja.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; } |