coapjs / coapjs/node-coap

Format 0 must be utf-8

Open
#33 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug RFC 7252
Dominant language
TypeScript
Stars
552
Forks
154
PR merge metrics
No merged PRs in 30d

Description

Format 0 is defined as text/plain; charset=utf-8. By definition, text/* defaults to US-ASCII and causes encoding problems if a Unicode-encoded document is served without this charset parameter - e.g. in CoAP-to-HTTP translators.

Instead, the module serves option 0 as merely text/plain i.e. US-ASCII.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the code that serves CoAP option 0 and inspect how its media type is formatted. Confirm the current behavior and identify the relevant test coverage; done means option 0 is served as text/plain with the required utf-8 charset parameter.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.