Skip to content

Commit

Permalink
Hack to make content_types work after upgrading to Chalice 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
alasdairnicol committed Apr 29, 2017
1 parent af9e430 commit 7d66a10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
app = Chalice(app_name='contactform')


@app.route('/contact', methods=['POST'], content_types=['application/x-www-form-urlencoded'], cors=True)
@app.route('/contact', methods=['POST'], content_types=['application/x-www-form-urlencoded; charset=utf-8'], cors=True)
def contact():
# Set these in chalice/__init__.py
to_email = TO_EMAIL
Expand Down

0 comments on commit 7d66a10

Please sign in to comment.