Skip to content

Fix: rawHeaders array access bug causing incorrect charset detection#127

Open
liorcode wants to merge 1 commit intojhiesey:masterfrom
liorcode:fix-response-charset-detection
Open

Fix: rawHeaders array access bug causing incorrect charset detection#127
liorcode wants to merge 1 commit intojhiesey:masterfrom
liorcode:fix-response-charset-detection

Conversation

@liorcode
Copy link
Copy Markdown

  • Replace object access rawHeaders['mime-type'] with the headers object
  • Change header lookup from 'mime-type' to 'content-type' (HTTP standard)
  • Fix regex to capture multi-character charset values ([^;]+)
  • Add test case to verify charset extraction from content-type header

- Replace object access `rawHeaders['mime-type']` with the headers object
- Change header lookup from 'mime-type' to 'content-type' (HTTP standard)
- Fix regex to capture multi-character charset values ([^;]+)
- Add test case to verify charset extraction from content-type header
@liorcode
Copy link
Copy Markdown
Author

@jhiesey not sure you still maintain this project, can you review it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant