Skip to content

Commit

Permalink
Changed StringIO to BytesIO
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ngr31 authored Apr 16, 2018
1 parent d8bde7b commit 23ff87e
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 StringIO
from io import BytesIO
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'] = StringIO(unicode(body))
environ['wsgi.input'] = BytesIO(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 23ff87e

Please sign in to comment.