Small fix for the ResponseEncoding class

This commit is contained in:
Karim shoair
2024-11-26 22:55:22 +02:00
parent 28b783e86b
commit 06a47f9644
+2 -2
View File
@@ -65,10 +65,10 @@ class ResponseEncoding:
encoding = params["charset"].strip("'\"")
# Apply content-type specific rules
if content_type in cls.__ISO_8859_1_CONTENT_TYPES:
elif content_type in cls.__ISO_8859_1_CONTENT_TYPES:
encoding = "ISO-8859-1"
if content_type == "application/json":
elif content_type == "application/json":
encoding = cls.__DEFAULT_ENCODING
if encoding: