fix: don't try to encode cache with encoding none
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user