Skip to content

Commit f77809e

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gql/transport/requests.py

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

1515

16-
class RequestsHTTPTransport(Transport):
17-
"""Transport to execute GraphQL queries on remote servers.
16+
class RequestsHTTPTransport(HTTPTransport):
17+
"""Transport to execute GraphQL queries on remote servers.
1818
19-
The transport uses the requests library to send HTTP POST requests.
19+
The transport uses the requests library to send HTTP POST requests.
2020
"""
2121

2222
def __init__(
@@ -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)