From e6005b9fe05be5929c655b0297c17bf8e48dadd0 Mon Sep 17 00:00:00 2001 From: vrde Date: Wed, 24 Feb 2016 14:08:01 +0100 Subject: [PATCH] Add comment --- bigchaindb/web/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bigchaindb/web/views.py b/bigchaindb/web/views.py index 6f827cbb..805c25e7 100644 --- a/bigchaindb/web/views.py +++ b/bigchaindb/web/views.py @@ -17,6 +17,9 @@ def get_transaction(tx_id): @basic_views.route('/tx/', methods=['POST']) def create_transaction(): val = {} + + # `force` will try to format the body of the POST request even if the `content-type` header is not + # set to `application/json` tx = request.get_json(force=True) if tx['transaction']['operation'] == 'CREATE':