Permalink
Browse files

Revert: fix bug in request HTTP XML (HRX)

  • Loading branch information...
1 parent 6bc416f commit 1f844ea80d3f125c21496c64f3d8059371397922 @nycholas nycholas committed Feb 11, 2013
Showing with 1 addition and 5 deletions.
  1. +1 −5 flask_jsonrpc/helpers.py
View
@@ -22,11 +22,7 @@ def extract_raw_data_request(request):
if request.method == 'GET':
return request.query_string
elif request.method == 'POST':
- # True if the request was triggered via a JavaScript
- # XMLHttpRequest
- if request.is_xhr:
- return json.dumps(request.form.to_dict())
- elif request.data:
+ if request.data:
return request.data
elif request.form.to_dict():
return request.form.to_dict().keys()[0]

0 comments on commit 1f844ea

Please sign in to comment.