koajs / koajs/static-cache

Return the correct charset in content-type

Open
#83 0 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
JavaScript
Stars
291
Forks
48
PR merge metrics
No merged PRs in 30d

Description

It is found that if the file is not UTF-8 encoded, then the default UTF-8 encoding of koa.js will be used.

Please return the correct charset of the file here

Contributor guide

Open the contributing guide

Research direction

No file or test is named. Start by locating the static-cache middleware's content-type handling and reproduce the issue with a non-UTF-8 file. Done means the response reports that file's correct charset instead of always defaulting to UTF-8.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.