summaryrefslogtreecommitdiff
path: root/request.h
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-20 11:59:31 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-20 11:59:31 +0800
commit6c011cd71c4508bade7408dd2246e410f7173746 (patch)
tree1f9b04c80dbd99643b421c86eabd369fe67ca894 /request.h
parent5b8cfb927d07f925c5a2b4b1d49a70fcf8c4e705 (diff)
Fix content type to graphql
Diffstat (limited to 'request.h')
-rw-r--r--request.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/request.h b/request.h
index 8e02d48..849bc12 100644
--- a/request.h
+++ b/request.h
@@ -51,7 +51,7 @@ static inline void request_graphql(const char *query,
sprintf(url, GRAPHQL_URL, session->shop);
curl_easy_setopt(curl, CURLOPT_URL, url);
struct curl_slist *list = NULL;
- curl_slist_append(list, "Content-Type: application/json");
+ curl_slist_append(list, "Content-Type: application/graphql");
char header[TOKEN_HEADER_LEN + strlen(session->access_token) + 1];
sprintf(header, TOKEN_HEADER, session->access_token);
curl_slist_append(list, header);