Skip to content

[Bug]: Case-insensitive header handling for Header Key #250

@PENEKhun

Description

@PENEKhun
  • ko

현재 Content-Type와 같은 헤더는 대소문자가 다르게 제공되면 인식되지 않을 수 있습니다(예: content-type, CONTENT-TYPE). HTTP 명세에 따르면 헤더 필드 이름은 대소문자를 구분하지 않아야 하지만, 현재 구현은 이를 대소문자를 구분하여 처리하고 있습니다.

이로 인해 요청에서 헤더가 서로 다른 대소문자 변형으로 전달될 경우, 기능이 깨지거나 예상치 못한 동작을 유발할 수 있습니다. 따라서 헤더 키를 일관성 있게 소문자로 변환(normalize)하거나, 대소문자를 구분하지 않고 처리하도록 개선해야 안정적인 동작을 보장할 수 있습니다.

  • en

Currently, headers such as Content-Type may not be recognized if they are provided in a different casing (e.g., content-type, CONTENT-TYPE). According to the HTTP specification, header field names are case-insensitive, but the current implementation treats them as case-sensitive.

This can cause functionality to break or behave unexpectedly if requests provide headers with variations in casing. We should normalize header keys (e.g., lowercasing them) or handle them in a case-insensitive way to ensure consistent behavior.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions