Skip to content

Commit 42c8816

Browse files
committed
set use_json default true in RequestsHTTPTransport
1 parent e98ff27 commit 42c8816

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gql/transport/requests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from gql.transport import Transport
1414

1515

16-
class RequestsHTTPTransport(Transport):
16+
class RequestsHTTPTransport(HTTPTransport):
1717
"""Transport to execute GraphQL queries on remote servers.
1818
1919
The transport uses the requests library to send HTTP POST requests.
@@ -25,7 +25,7 @@ def __init__(
2525
headers=None, # type: Dict[str, Any]
2626
cookies=None, # type: Union[Dict[str, Any], RequestsCookieJar]
2727
auth=None, # type: AuthBase
28-
use_json=False, # type: bool
28+
use_json=True, # type: bool
2929
timeout=None, # type: int
3030
verify=True, # type: bool
3131
retries=0, # type: int

0 commit comments

Comments
 (0)