aboutsummaryrefslogtreecommitdiffstats
path: root/community/searx/1831.patch
blob: a76e1c149c54da7b0945e251a80a454194b038da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Upstream: Yes, https://github.com/asciimoo/searx/pull/1831
Reason: Fixes startup with py3-werkzeug 1.x
From b8b13372c8fd3bfe978a1c724ab98b05348df054 Mon Sep 17 00:00:00 2001
From: Nicolas Gelot <nicolas.gelot@e.email>
Date: Thu, 6 Feb 2020 22:40:58 +0100
Subject: [PATCH] Fix deprecated werkzeug import

Close: #1830
Signed-off-by: Nicolas Gelot <nicolas.gelot@e.email>
---
 requirements.txt | 2 +-
 searx/webapp.py  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/searx/webapp.py b/searx/webapp.py
index aadefe6b9..5ed9f1277 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -47,7 +47,7 @@
     from html import escape
 from datetime import datetime, timedelta
 from time import time
-from werkzeug.contrib.fixers import ProxyFix
+from werkzeug.middleware.proxy_fix import ProxyFix
 from flask import (
     Flask, request, render_template, url_for, Response, make_response,
     redirect, send_from_directory