Skip to content

Commit 86c9620

Browse files
committed
fix flub in processing headers arg
1 parent de2d1dc commit 86c9620

File tree

6 files changed

+1
-1
lines changed

6 files changed

+1
-1
lines changed
4 Bytes
Binary file not shown.

dist/pyral-1.3.1.docs.html.zip

0 Bytes
Binary file not shown.

dist/pyral-1.3.1.tar.gz

5 Bytes
Binary file not shown.

dists/pyral-1.3.1.tar.gz

5 Bytes
Binary file not shown.

dists/pyral-1.3.1.zip

4 Bytes
Binary file not shown.

pyral/restapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def __init__(self, server=SERVER, user=None, password=None, apikey=None,
228228
if 'headers' in kwargs:
229229
for header_name, header_value in kwargs['headers'].items():
230230
matching_header = [key for key in self.session.headers
231-
if key.replace(INTEGRATION_HEADER_PREFIX).lower() == header_value.lower()]
231+
if key.replace(INTEGRATION_HEADER_PREFIX, '').lower() == header_name.lower()]
232232
if matching_header:
233233
self.session.headers[matching_header[0]] = header_value
234234
if self.apikey:

0 commit comments

Comments
 (0)