Skip to content

Commit

Permalink
Merge pull request #48 from farcaller/patch-1
Browse files Browse the repository at this point in the history
Fix the _accept_header taint
  • Loading branch information
davedoesdev committed May 10, 2023
2 parents 0743aef + 53872a3 commit db4905d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dxf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ def _base_request(self, method, path, **kwargs):
def make_kwargs():
r = {'allow_redirects': True, 'verify': self._tlsverify, 'timeout': self._timeout}
r.update(kwargs)
if 'headers' not in r:
r['headers'] = {}
r['headers'] = {}
r['headers'].update(kwargs.get('headers', {}))
r['headers'].update(self._headers)
return r
url = urlparse.urljoin(self._base_url, path)
Expand Down

0 comments on commit db4905d

Please sign in to comment.