koajs / koajs/koa

[feat] HTTP singleton header validations

Open
#1,973 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
35.7k
Forks
3.2k
Avg merge
5d 6h
Merged PRs (30d)
2

Description

## Describe the feature

follow-up to https://github.com/koajs/koa/pull/1899

if an HTTP header is a singleton, we should have stricter validations and disallow setting multiple fields.

Contributor guide

Open the contributing guide

Research direction

Start by reading the follow-up pull request at https://github.com/koajs/koa/pull/1899 and tracing the HTTP header handling it changed. Identify how singleton headers are currently accepted, then define validation behavior that rejects multiple fields; done means singleton headers cannot be set more than once and the relevant behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.