diff options
| author | Michael Merickel <michael@merickel.org> | 2019-12-15 20:46:12 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2019-12-15 20:46:12 -0600 |
| commit | 8fe8725d4d20b18715291d3b45899d3389fe1d8b (patch) | |
| tree | 05fdfa5be326add83de8b3c0441a5ef3d5e86848 /src | |
| parent | c6340737a4826d4073f0cfa7951dccf42d0cbfcf (diff) | |
| download | pyramid-8fe8725d4d20b18715291d3b45899d3389fe1d8b.tar.gz pyramid-8fe8725d4d20b18715291d3b45899d3389fe1d8b.tar.bz2 pyramid-8fe8725d4d20b18715291d3b45899d3389fe1d8b.zip | |
handle a missing content negotiation case where the unencoded option is not available and the client requests an encoded variant that doesn't exist
Diffstat (limited to 'src')
| -rw-r--r-- | src/pyramid/static.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 + '/' |
