[wsgi] [minor] send content as request.data
This commit is contained in:
parent
e32a0ee7bf
commit
9d11c3e76a
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue