Skip to content

fix(http): use spec-compliant percent-encoding for HTTP header values#268

Merged
xSAVIKx merged 1 commit intocloudevents:v2from
PlugaruT:tudor/respect-headers-encoding-for-http
Mar 7, 2026
Merged

fix(http): use spec-compliant percent-encoding for HTTP header values#268
xSAVIKx merged 1 commit intocloudevents:v2from
PlugaruT:tudor/respect-headers-encoding-for-http

Conversation

@PlugaruT
Copy link

@PlugaruT PlugaruT commented Mar 6, 2026

Per CloudEvents HTTP binding spec (section 3.1.3.2), only these should be percent-encoded: space (U+0020), double-quote (U+0022), percent (U+0025), and characters outside printable ASCII (U+0021-U+007E).
Respect spec https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/bindings/http-protocol-binding.md#3132-http-header-values

One line description for the changelog

  • Tests pass
  • Appropriate changes to README are included in PR

  Per CloudEvents HTTP binding spec (section 3.1.3.2), only these should
  be percent-encoded: space (U+0020), double-quote (U+0022), percent
  (U+0025), and characters outside printable ASCII (U+0021-U+007E).

Signed-off-by: PlugaruT <plugaru.tudor@protonmail.com>
@PlugaruT
Copy link
Author

PlugaruT commented Mar 6, 2026

@xSAVIKx I've spotted this bug while reviewing the work before a future release. Please have a look

@xSAVIKx xSAVIKx merged commit 20c6a65 into cloudevents:v2 Mar 7, 2026
19 checks passed
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.

2 participants