Skip to content

Commit 137c1e1

Browse files
author
Keyur
committed
Fix: Refactor transform headers
Fix: Refactor transform headers Bump: version to 0.1.4
1 parent ed73a10 commit 137c1e1

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

moesifpythonrequest/utility_function/utility_function.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,11 @@ def flatten_to_string(self, value):
5151
return ''
5252
return APIHelper.json_serialize(value)
5353

54-
# Function to transform the request headers
55-
def transform_key(self, key):
56-
key = key.upper()
57-
key = key.replace('-', '_')
58-
return key
5954

6055
# Function to create request headers
6156
def create_request_headers(self, req_headers):
6257
try:
63-
req_headers = {self.transform_key(k): v for k, v in req_headers.items()}
58+
req_headers = {k: v for k, v in req_headers.items()}
6459
except:
6560
req_headers = {}
6661
return req_headers

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# Versions should comply with PEP440. For a discussion on single-sourcing
2929
# the version across setup.py and the project code, see
3030
# https://packaging.python.org/en/latest/single_source_version.html
31-
version='0.1.3',
31+
version='0.1.4',
3232

3333
description='Moesif Python request',
3434
long_description=long_description,

0 commit comments

Comments
 (0)