diff options
author | Yuchen Wu <[email protected]> | 2024-10-11 15:28:52 -0700 |
---|---|---|
committer | Edward Wang <[email protected]> | 2024-10-18 13:34:09 -0700 |
commit | 2c6190c634f2a5dd2f00e8597902f2b735a9d84f (patch) | |
tree | 80c799dd7ad00ea4a3bb18885af7de45a1e6d518 | |
parent | 63af8e28f24e36db7d4c092a1edbe5dca80d0a23 (diff) | |
download | pingora-2c6190c634f2a5dd2f00e8597902f2b735a9d84f.tar.gz pingora-2c6190c634f2a5dd2f00e8597902f2b735a9d84f.zip |
Auto snake case set-cookie header
For consistency when proxying h2 traffic to h1.
-rw-r--r-- | .bleep | 2 | ||||
-rw-r--r-- | pingora-http/src/case_header_name.rs | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -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? _ => { |