summaryrefslogtreecommitdiff
path: root/post.h
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-20 08:17:57 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-20 08:17:57 +0800
commit58bbe66096bc40cede5ea78442f9f0702c73c6ed (patch)
tree6be77be7957de2ec7d965362e5d9aab1328155f0 /post.h
parent2ecd7fbbc8456bd5a3d4f6b188c626bc44c60eb2 (diff)
Make the request function a variadic one
Diffstat (limited to 'post.h')
-rw-r--r--post.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/post.h b/post.h
index 05af269..8420d73 100644
--- a/post.h
+++ b/post.h
@@ -35,7 +35,7 @@ inline void post(const char *path, const char *pairs[], size_t n)
, CURLFORM_PTRCONTENTS, content
, CURLFORM_END);
last = NULL;
- request(path, "", NULL, NULL, post);
+ request(NULL, NULL, post, "%s", path);
curl_formfree(post);
post = NULL;
}