Skip to content

Commit

Permalink
fix(dgw): Content-Type header present twice for Json responses (#315)
Browse files Browse the repository at this point in the history
This is bad.

Indeed, `Content-Type` is a "singleton field": a single member is anticipated as the field value.

RFC9110 says:

> Although Content-Type is defined as a singleton field,
> it is sometimes incorrectly generated multiple times,
> resulting in a combined field value that appears to be a list.
> Recipients often attempt to handle this error by using
> the last syntactically valid member of the list, leading to
> potential interoperability and security issues if different
> implementations have different error handling behaviors.

This was a bug in Saphir. I fixed it and updated the reference in Cargo.lock.
  • Loading branch information
CBenoit authored Sep 6, 2022
1 parent 8491f7e commit c0976d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c0976d8

Please sign in to comment.