json, add header

This commit is contained in:
Martijn Voncken 2008-07-12 06:54:36 +00:00
parent e6a8123939
commit 255920fad9

View File

@ -65,11 +65,12 @@ class json_rpc:
def POST(self , name=None):
web.header("Content-Type", "application/x-json")
ck = cookies()
if not(ck.has_key("session_id") and ck["session_id"] in utils.SESSIONS):
print """{"error":{
"number":1,
"message":"not authenticated"
"message":"not authenticated",
"error":"not authenticated"
}
}