From 2c6190c634f2a5dd2f00e8597902f2b735a9d84f Mon Sep 17 00:00:00 2001 From: Yuchen Wu Date: Fri, 11 Oct 2024 15:28:52 -0700 Subject: Auto snake case set-cookie header For consistency when proxying h2 traffic to h1. --- .bleep | 2 +- pingora-http/src/case_header_name.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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? _ => { -- cgit v1.2.3