Skip to content

Commit aa45eb5

Browse files
author
Keyur
committed
Fix: Remove undefined variable
Fix: Remove undefined variable Bump version to 1.0.6
1 parent 323765c commit aa45eb5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

moesif_aws_lambda/middleware.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ def process_body(self, body_wrapper):
132132
body = body_wrapper.get('body')
133133
transfer_encoding = 'json'
134134
except Exception as e:
135-
body = base64.b64encode(body_wrapper['body'].encode("utf-8"))
136-
return str(encodedBytes, "utf-8"), 'json'
135+
return body_wrapper.get('body'), 'base64'
137136
return body, transfer_encoding
138137

139138
def before(self, event, context):

setup.py

+1-1
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='1.0.5',
31+
version='1.0.6',
3232

3333
description='Moesif Middleware to automatically log API calls from AWS Lambda functions',
3434
long_description=long_description,

0 commit comments

Comments
 (0)