Skip to content

Commit

Permalink
Revert failing BytesIO for AWS Lambda build
Browse files Browse the repository at this point in the history
  • Loading branch information
fergyfresh authored May 4, 2018
1 parent 7456ea5 commit 7594bc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flask_ask/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import yaml
import inspect
from datetime import datetime
from io import BytesIO
from io import StringIO
from functools import wraps, partial

import aniso8601
Expand Down Expand Up @@ -610,7 +610,7 @@ def unicode_to_wsgi(u):
body = json.dumps(event)
environ['CONTENT_TYPE'] = 'application/json'
environ['CONTENT_LENGTH'] = len(body)
environ['wsgi.input'] = BytesIO(body)
environ['wsgi.input'] = StringIO(body)

# Start response is a required callback that must be passed when
# the application is invoked. It is used to set HTTP status and
Expand Down

0 comments on commit 7594bc1

Please sign in to comment.