@@ -67,7 +67,7 @@ def query(self, query, variables=None, abort_on_error=False):
67
67
raise InvalidGraphQLQuery ("Must provide a string" )
68
68
69
69
# Setting content type because post_reuqest defaults to text/xml
70
- server_response = self .post_request (url , graphql_query , content_type = "text /json" )
70
+ server_response = self .post_request (url , graphql_query , content_type = "application /json" )
71
71
results = server_response .json ()
72
72
73
73
if abort_on_error and results .get ("errors" , None ):
@@ -112,7 +112,7 @@ def paginated_query(self, query, variables=None, abort_on_error=False):
112
112
paginated_results = results_dict ["pages" ]
113
113
114
114
# get first page
115
- server_response = self .post_request (url , graphql_query , content_type = "text /json" )
115
+ server_response = self .post_request (url , graphql_query , content_type = "application /json" )
116
116
results = server_response .json ()
117
117
118
118
if abort_on_error and results .get ("errors" , None ):
@@ -129,7 +129,7 @@ def paginated_query(self, query, variables=None, abort_on_error=False):
129
129
# make the call
130
130
logger .debug ("Calling Token: " + cursor )
131
131
graphql_query = json .dumps ({"query" : query , "variables" : variables })
132
- server_response = self .post_request (url , graphql_query , content_type = "text /json" )
132
+ server_response = self .post_request (url , graphql_query , content_type = "application /json" )
133
133
results = server_response .json ()
134
134
# verify response
135
135
if abort_on_error and results .get ("errors" , None ):
0 commit comments