28 lines
926 B
Diff
28 lines
926 B
Diff
From ba413dcbc1914c511d03e1d95f3663a91daf349a Mon Sep 17 00:00:00 2001
|
|
From: "Sean Francis N. Ballais" <sfballais123@gmail.com>
|
|
Date: Wed, 27 May 2020 00:44:21 +0800
|
|
Subject: [PATCH] Fixes #271 (#276)
|
|
|
|
* Add support for werkzeug 1.0.
|
|
|
|
|
|
Co-authored-by: zcutlip <uid000@gmail.com>
|
|
---
|
|
voltron/core.py | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/voltron/core.py b/voltron/core.py
|
|
index f22f375..351a0ea 100644
|
|
--- a/voltron/core.py
|
|
+++ b/voltron/core.py
|
|
@@ -15,7 +15,8 @@
|
|
import voltron
|
|
from flask import Flask, Response, make_response, redirect, render_template, request
|
|
from werkzeug.serving import BaseWSGIServer, ThreadedWSGIServer, WSGIRequestHandler
|
|
-from werkzeug.wsgi import DispatcherMiddleware, SharedDataMiddleware
|
|
+from werkzeug.middleware.dispatcher import DispatcherMiddleware
|
|
+from werkzeug.middleware.shared_data import SharedDataMiddleware
|
|
from requests import ConnectionError
|
|
|
|
|