fix: don't try to encode cache with encoding none
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2024-04-26 18:42:39 +02:00
parent 1b0749a962
commit 2bf362c696
2 changed files with 2 additions and 2 deletions

View File

@@ -194,7 +194,7 @@ class Connection:
additional_info = cached.attribute.additional_info
body = cached.content
if "encoding" in additional_info:
if additional_info.get("encoding", None) is not None:
body = body.decode(additional_info["encoding"])
resp.add(