From 37f5a92b05764356baff305847a702c70afab2cd Mon Sep 17 00:00:00 2001 From: pictuga Date: Mon, 6 Sep 2021 22:01:48 +0200 Subject: [PATCH] wsgi: fix apache / workload --- morss/wsgi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/morss/wsgi.py b/morss/wsgi.py index 03b774a..32a3cde 100644 --- a/morss/wsgi.py +++ b/morss/wsgi.py @@ -50,7 +50,7 @@ def parse_options(options): split = option.split('=', 1) if len(split) > 1: - out[split[0]] = unquote(split[1]) + out[split[0]] = unquote(split[1]).replace('|', '/') # | -> / for backward compatibility (and Apache) else: out[split[0]] = True @@ -85,7 +85,7 @@ def cgi_parse_environ(environ): if url.startswith(':'): parts = url.split('/', 1) - raw_options = parts[0].replace('|', '/').split(':')[1:]# | -> / for backward compatibility + raw_options = parts[0].split(':')[1:] url = parts[1] if len(parts) > 1 else '' else: