From 8fe8725d4d20b18715291d3b45899d3389fe1d8b Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Sun, 15 Dec 2019 20:46:12 -0600 Subject: handle a missing content negotiation case where the unencoded option is not available and the client requests an encoded variant that doesn't exist --- src/pyramid/static.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/pyramid/static.py b/src/pyramid/static.py index 7870b803e..499706554 100644 --- a/src/pyramid/static.py +++ b/src/pyramid/static.py @@ -236,6 +236,7 @@ class static_view(object): for path, encoding in files: if encoding in acceptable_encodings: return path, encoding + return None, None def add_slash_redirect(self, request): url = request.path_url + '/' -- cgit v1.2.3