Skip to content

Commit

Permalink
Small fix for the ResponseEncoding class
Browse files Browse the repository at this point in the history
  • Loading branch information
D4Vinci committed Nov 26, 2024
1 parent 28b783e commit 06a47f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrapling/engines/toolbelt/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ def get_value(cls, content_type: Optional[str], text: Optional[str] = 'test') ->
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:
Expand Down

0 comments on commit 06a47f9

Please sign in to comment.