Permalink
Browse files

added header to json requests in wui.

  • Loading branch information...
javipalanca committed Nov 8, 2017
1 parent 2a36271 commit 4c715eae706adf463d3ff603cd36eb3d2fa6c6db
Showing with 2 additions and 1 deletion.
  1. +1 −1 runspade.py
  2. +1 −0 spade/wui.py
View
@@ -19,7 +19,7 @@
from xmppd.xmppd import Server
__author__ = "Gustavo Aranda <gusarba@gmail.com> and Javier Palanca <jpalanca@gmail.com>"
__version__ = "2.3.1"
__version__ = "2.3.2"
__copyright__ = "Copyright (C) 2006-2017"
__license__ = "LGPL"
View
@@ -368,5 +368,6 @@ def do_GET(self):
for morsel in self.cookie.values():
self.send_header('Set-Cookie', morsel.output(header='').lstrip())
self.send_header('Content-Type', 'application/json')
self.send_header('Access-Control-Allow-Origin', '*')
self.end_headers()
self.wfile.write(json.dumps(ret))

0 comments on commit 4c715ea

Please sign in to comment.