File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
tests/e2e/streaming/handlers Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -66,13 +66,15 @@ def lambda_handler(event, context):
66
66
67
67
if transform_zip or transform_zip_lzma :
68
68
response ["manifest" ] = obj .namelist ()
69
- response ["body" ] = obj .read (obj .namelist ()[1 ]).rstrip () # extracts the second file on the zip
69
+ response ["body" ] = (
70
+ obj .read (obj .namelist ()[1 ]).rstrip ().decode ("utf-8" )
71
+ ) # extracts the second file on the zip
70
72
elif transform_csv or csv :
71
73
response ["body" ] = obj .__next__ ()
72
74
elif transform_gzip or gunzip :
73
- response ["body" ] = obj .readline ().rstrip ()
75
+ response ["body" ] = obj .readline ().rstrip (). decode ( "utf-8" )
74
76
else :
75
- response ["body" ] = obj .readline ().rstrip ()
77
+ response ["body" ] = obj .readline ().rstrip (). decode ( "utf-8" )
76
78
except botocore .exceptions .ClientError as e :
77
79
if e .response ["Error" ]["Code" ] == "404" :
78
80
response ["error" ] = "Not found"
You can’t perform that action at this time.
0 commit comments