Skip to content

Commit

Permalink
Fixed http transport headers
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Jun 30, 2016
1 parent 5cf8821 commit b30c393
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gql/transport/http.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class HTTPTransport(object):

def __init__(self, url, client_headers=None):
def __init__(self, url, headers=None):
self.url = url
self.client_headers = None
self.headers = headers
2 changes: 1 addition & 1 deletion gql/transport/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def execute(self, document, variable_values=None):
'query': query_str,
'variables': variable_values
},
headers=self.client_headers,
headers=self.headers,
auth=self.auth
)
request.raise_for_status()
Expand Down

0 comments on commit b30c393

Please sign in to comment.