From 9d11c3e76a0a2c8df269319b5aaab8aece5df6d8 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 16 Sep 2013 22:25:39 +0530 Subject: [PATCH] [wsgi] [minor] send content as request.data --- webnotes/app.py | 2 +- webnotes/sessions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webnotes/app.py b/webnotes/app.py index 2299e90189..d2366c9922 100644 --- a/webnotes/app.py +++ b/webnotes/app.py @@ -21,7 +21,7 @@ def application(request): content = static.read() response = Response() - response.response = content + response.data = content response.headers["Content-type"] = mimetypes.guess_type(path)[0] return response diff --git a/webnotes/sessions.py b/webnotes/sessions.py index ebc1fa3b1f..43ea057c65 100644 --- a/webnotes/sessions.py +++ b/webnotes/sessions.py @@ -221,7 +221,7 @@ class Session: lastupdate=NOW() where sid=%s""" , (str(self.data['data']), self.data['sid'])) - if webnotes.request.cmd not in ("webnotes.sessions.clear", "logout"): + if webnotes.form_dict.cmd not in ("webnotes.sessions.clear", "logout"): webnotes.cache().set_value("last_db_session_update:" + self.sid, webnotes.utils.now()) webnotes.cache().set_value("session:" + self.sid, self.data)