[tor-commits] [ooni-probe/master] Use the HTTP Return JSON headers helper in the SSL helper
art at torproject.org
art at torproject.org
Fri Dec 7 11:01:06 UTC 2012
commit 58acc580bda64df33420c2c7359bae0c9dace073
Author: Arturo Filastò <art at fuffa.org>
Date: Fri Dec 7 12:00:36 2012 +0100
Use the HTTP Return JSON headers helper in the SSL helper
---
oonib/oonibackend.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/oonib/oonibackend.py b/oonib/oonibackend.py
index c747bfd..c78317f 100644
--- a/oonib/oonibackend.py
+++ b/oonib/oonibackend.py
@@ -31,7 +31,7 @@ serviceCollection = service.IServiceCollection(application)
if config.helpers.ssl.port:
print "Starting SSL helper on %s" % config.helpers.ssl.port
ssl_helper = internet.SSLServer(int(config.helpers.ssl.port),
- server.Site(HTTPBackend()),
+ http_helpers.HTTPReturnJSONHeadersHelper()),
SSLContext(config))
ssl_helper.setServiceParent(serviceCollection)
More information about the tor-commits
mailing list