annotate libervia/pages/app/page_meta.py @ 1203:251eba911d4d

server (websockets): fixed websocket handling on HTTPS connections: Original request used to retrieve a page was stored on dynamic pages, but after the end of it, the channel was deleted, resulting in a isSecure() always returning False, and troubles in chain leading to the the use of the wrong session object. This patch fixes this by reworking the way original request is used, and creating a new wrapping class allowing to keep an API similar to iweb.IRequest, with data coming from both the original request and the websocket request. fix 327
author Goffi <goffi@goffi.org>
date Sun, 14 Jul 2019 14:45:51 +0200
parents 28e3eb3bb217
children b2d067339de3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1004
2f994b4e5a7d pages (app): added named page "app"
Goffi <goffi@goffi.org>
parents:
diff changeset
1 #!/usr/bin/env python2.7
2f994b4e5a7d pages (app): added named page "app"
Goffi <goffi@goffi.org>
parents:
diff changeset
2 # -*- coding: utf-8 -*-
2f994b4e5a7d pages (app): added named page "app"
Goffi <goffi@goffi.org>
parents:
diff changeset
3
1113
cdd389ef97bc server: code style reformatting using black
Goffi <goffi@goffi.org>
parents: 1004
diff changeset
4 name = u"app"
1004
2f994b4e5a7d pages (app): added named page "app"
Goffi <goffi@goffi.org>
parents:
diff changeset
5 template = u"app/app.html"