Skip to content

Commit

Permalink
bugfix persistent session headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Zizzi committed Jun 28, 2019
1 parent 4a19b90 commit 8674315
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysnow/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def delete(self, query):
self._url = self._url_builder.get_appended_custom("/{0}".format(record['sys_id']))
return self._get_response('DELETE').one()

def custom(self, method, path_append=None, headers=None, **kwargs):
def custom(self, method, path_append=None, **kwargs):
"""Creates a custom request
:param method: HTTP method
Expand All @@ -119,4 +119,4 @@ def custom(self, method, path_append=None, headers=None, **kwargs):
raise InvalidUsage("Argument 'path_append' must be a string in the following format: "
"/path-to-append[/.../...]")

return self._get_response(method, headers=headers, **kwargs)
return self._get_response(method, **kwargs)

0 comments on commit 8674315

Please sign in to comment.