From 17bdc3db5210440b677e36f0db1222c73486b440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=2E=20K=C3=A4rkk=C3=A4inen?= Date: Mon, 29 Jul 2019 19:18:15 +0300 Subject: [PATCH] Fix string escape. --- sanic/headers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanic/headers.py b/sanic/headers.py index fccef120..9ef28fa3 100644 --- a/sanic/headers.py +++ b/sanic/headers.py @@ -1,7 +1,7 @@ import re token, quoted = r"([\w!#$%&'*+\-.^_`|~]+)", r'"((?:[^"]|\\")*)"' -parameter = re.compile(f';\s*{token}=(?:{token}|{quoted})', re.ASCII) +parameter = re.compile(fr';\s*{token}=(?:{token}|{quoted})', re.ASCII) def parse_options_header(value: str):