1

Topic: fling/fling does not return JSON

The response has a Content-Type of application/json, but returns a naked string:

HTTP/1.1 200 OK
Cache-Control: no-cache, no-store
Connection: close
Date: Tue, 17 Jul 2012 19:50:56 GMT
Pragma: no-cache
Server: gunicorn/0.14.2
Content-Length: 22
Content-Type: application/json; charset=utf-8
Client-Date: Tue, 17 Jul 2012 19:50:56 GMT
Client-Peer: 76.14.1.98:80
Client-Response-Num: 1

"Flung to 1 services"

This is a problem for parsing, if the parser expects the data to match the content type.

2

Re: fling/fling does not return JSON

>>> import json
>>> json.dumps("hi there")
'"hi there"'

A naked string in double quotes is valid JSON.

--Dave