Changeset 175:9e9871398c7f
- Timestamp:
- 08/28/08 21:16:15 (19 months ago)
- Author:
- rgrp
- Branch:
- default
- convert_revision:
- svn:10edda23-d834-0410-9182-b00384516d49/trunk@187
- Message:
-
[rest][xs]: change rest api to set content-type header to application/json.
This is a minor change but without it ajaxy interaction with server on www.microfacts.org was failing (it seems returned json data was simply not getting processed by mootools JSON request object). Not clear why this was working on localhost but not on remote hosts but it is fixed now.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r68
|
r175
|
|
| 73 | 73 | |
| 74 | 74 | def finish(self): |
| | 75 | response.headers['Content-type'] = 'application/json' |
| 75 | 76 | response.status_code = self.mode.response_code |
| 76 | 77 | return simplejson.dumps(self.mode.response_data) |