From e60a3a697ec46064afb383ec7efe8b7fcc340575 Mon Sep 17 00:00:00 2001 From: ibuler Date: Sat, 7 Nov 2015 17:41:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B5=8B=E8=AF=95web=20termi?= =?UTF-8?q?nal=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run_websocket.py | 4 ++-- templates/jlog/log_online.html | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/run_websocket.py b/run_websocket.py index 120dd1097..18c297ad5 100644 --- a/run_websocket.py +++ b/run_websocket.py @@ -50,8 +50,8 @@ def require_auth(func): client = tornado.httpclient.HTTPClient() # response = client.fetch('http://some/url') + urllib.urlencode({'username': username, # 'asset_name': asset_name, 'token': token}) - return request.close() - # return func(request, *args, **kwargs) + # return request.close() + return func(request, *args, **kwargs) return _deco diff --git a/templates/jlog/log_online.html b/templates/jlog/log_online.html index 3bc55bc5c..96d8a9d07 100644 --- a/templates/jlog/log_online.html +++ b/templates/jlog/log_online.html @@ -50,7 +50,7 @@