adafruit / adafruit/Adafruit_CircuitPython_Requests

ISO-8859-1 encoded header values throws Unicode exception

Open
#143 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
49
Forks
39
PR merge metrics
No merged PRs in 30d

Description

Fetching requests with ISO-8859-1 (Latin 1) encoded values with special characters (ex. "ö") inside their header throw an Unicode exception in string creation (line 364) rather than being replaced or ignored.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting the string creation at line 364 and reproduce a request whose header contains an ISO-8859-1 value such as "ö". Determine the expected handling for that value, then verify that fetching the request no longer raises a Unicode exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.