diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-20 11:59:31 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-20 11:59:31 +0800 |
commit | 6c011cd71c4508bade7408dd2246e410f7173746 (patch) | |
tree | 1f9b04c80dbd99643b421c86eabd369fe67ca894 /request.h | |
parent | 5b8cfb927d07f925c5a2b4b1d49a70fcf8c4e705 (diff) |
Fix content type to graphql
Diffstat (limited to 'request.h')
-rw-r--r-- | request.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |