Skip to content

Commit

Permalink
Auto snake case set-cookie header
Browse files Browse the repository at this point in the history
For consistency when proxying h2 traffic to h1.
  • Loading branch information
eaufavor authored and drcaramelsyrup committed Oct 18, 2024
1 parent 63af8e2 commit 2c6190c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .bleep
Original file line number Diff line number Diff line change
@@ -1 +1 @@
904af0c56be96e8e51bc6acd04b1c21cdd48138b
0c3b05818a9e9be92d0861b1e72254dadcd978c5
1 change: 1 addition & 0 deletions pingora-http/src/case_header_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ pub(crate) fn titled_header_name_str(header_name: &HeaderName) -> Option<&'stati
header::TRANSFER_ENCODING => "Transfer-Encoding",
header::HOST => "Host",
header::SERVER => "Server",
header::SET_COOKIE => "Set-Cookie",
// TODO: add more const header here to map to their titled case
// TODO: automatically upper case the first letter?
_ => {
Expand Down

0 comments on commit 2c6190c

Please sign in to comment.