summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);