Fix compatibility with werkzeug 1.0.x + secure-cookie

This commit is contained in:
Disassembler 2020-10-12 21:35:43 +02:00
parent 9d18f665c5
commit f370bd4712
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ pkgdesc="VM and application manager"
url="https://spotter.vm/"
arch="noarch"
license="GPL"
depends="acme.sh python3 py3-bcrypt py3-cffi py3-cryptography py3-dnspython py3-jinja2 py3-requests py3-six py3-werkzeug wireguard-virt wireguard-tools-wg"
depends="acme.sh python3 py3-bcrypt py3-cffi py3-cryptography py3-dnspython py3-jinja2 py3-requests py3-secure-cookie py3-six py3-werkzeug wireguard-virt wireguard-tools-wg"
options="!check !strip"
build() {

View File

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from werkzeug.contrib.securecookie import SecureCookie
from secure_cookie.cookie import SecureCookie
class WSGISession:
def __init__(self, cookies, secret_key):

View File

@ -7,7 +7,7 @@ application = WSGIApp()
if __name__ == '__main__':
import os
from werkzeug.contrib.fixers import ProxyFix
from werkzeug.middleware.proxy_fix import ProxyFix
from werkzeug.serving import run_simple
run_simple('127.0.0.1', 8080, ProxyFix(application), threaded=True)