Skip to content

Commit

Permalink
Merge pull request #118 from mzizzi/custom-request-headers-bugfix
Browse files Browse the repository at this point in the history
bugfix persistent session headers
  • Loading branch information
rbw authored Jun 28, 2019
2 parents 017150a + 8674315 commit d9290a4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 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 @@ -112,10 +112,6 @@ def custom(self, method, path_append=None, headers=None, **kwargs):
:return:
- :class:`pysnow.Response` object
"""

if headers:
self._session.headers.update(headers)

if path_append is not None:
try:
self._url = self._url_builder.get_appended_custom(path_append)
Expand Down

0 comments on commit d9290a4

Please sign in to comment.