aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYuchen Wu <[email protected]>2024-10-11 15:28:52 -0700
committerEdward Wang <[email protected]>2024-10-18 13:34:09 -0700
commit2c6190c634f2a5dd2f00e8597902f2b735a9d84f (patch)
tree80c799dd7ad00ea4a3bb18885af7de45a1e6d518
parent63af8e28f24e36db7d4c092a1edbe5dca80d0a23 (diff)
downloadpingora-2c6190c634f2a5dd2f00e8597902f2b735a9d84f.tar.gz
pingora-2c6190c634f2a5dd2f00e8597902f2b735a9d84f.zip
Auto snake case set-cookie header
For consistency when proxying h2 traffic to h1.
-rw-r--r--.bleep2
-rw-r--r--pingora-http/src/case_header_name.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/.bleep b/.bleep
index 4fc8946..eccaf86 100644
--- a/.bleep
+++ b/.bleep
@@ -1 +1 @@
-904af0c56be96e8e51bc6acd04b1c21cdd48138b \ No newline at end of file
+0c3b05818a9e9be92d0861b1e72254dadcd978c5 \ No newline at end of file
diff --git a/pingora-http/src/case_header_name.rs b/pingora-http/src/case_header_name.rs
index add0ced..95fd97f 100644
--- a/pingora-http/src/case_header_name.rs
+++ b/pingora-http/src/case_header_name.rs
@@ -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?
_ => {