This is an automated email from the ASF dual-hosted git repository.

jvanderzee pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 7bea1d655e Lowercase the headers appended by ja3_fingerprint (#11504)
7bea1d655e is described below

commit 7bea1d655e92ee62a6ffd997a457c9338c3f60ef
Author: JosiahWI <[email protected]>
AuthorDate: Wed Jul 3 19:38:26 2024 -0500

    Lowercase the headers appended by ja3_fingerprint (#11504)
    
    The headers should already be lowercased by ATS as is required for HTTP/2, 
and
    comparisons should be case-insensitive; this is purely a cosmetic change.
---
 plugins/ja3_fingerprint/ja3_fingerprint.cc                            | 4 ++--
 .../gold_tests/pluginTest/ja3_fingerprint/modify-incoming-client.gold | 4 ++--
 .../gold_tests/pluginTest/ja3_fingerprint/modify-incoming-proxy.gold  | 2 +-
 tests/gold_tests/pluginTest/ja3_fingerprint/modify-sent-proxy.gold    | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/plugins/ja3_fingerprint/ja3_fingerprint.cc 
b/plugins/ja3_fingerprint/ja3_fingerprint.cc
index 95e34c44d6..138ecfdc3e 100644
--- a/plugins/ja3_fingerprint/ja3_fingerprint.cc
+++ b/plugins/ja3_fingerprint/ja3_fingerprint.cc
@@ -252,11 +252,11 @@ modify_ja3_headers(TSCont contp, TSHttpTxn txnp, ja3_data 
const *ja3_vconn_data)
   }
 
   // Add JA3 md5 fingerprints
-  append_to_field(bufp, hdr_loc, "X-JA3-Sig", 9, ja3_vconn_data->md5_string, 
32);
+  append_to_field(bufp, hdr_loc, "x-ja3-sig", 9, ja3_vconn_data->md5_string, 
32);
 
   // If raw string is configured, added JA3 raw string to header as well
   if (raw_flag) {
-    append_to_field(bufp, hdr_loc, "x-JA3-RAW", 9, 
ja3_vconn_data->ja3_string.data(), ja3_vconn_data->ja3_string.size());
+    append_to_field(bufp, hdr_loc, "x-ja3-raw", 9, 
ja3_vconn_data->ja3_string.data(), ja3_vconn_data->ja3_string.size());
   }
   TSHandleMLocRelease(bufp, TS_NULL_MLOC, hdr_loc);
 
diff --git 
a/tests/gold_tests/pluginTest/ja3_fingerprint/modify-incoming-client.gold 
b/tests/gold_tests/pluginTest/ja3_fingerprint/modify-incoming-client.gold
index 97adf7921f..ff7b481c01 100644
--- a/tests/gold_tests/pluginTest/ja3_fingerprint/modify-incoming-client.gold
+++ b/tests/gold_tests/pluginTest/ja3_fingerprint/modify-incoming-client.gold
@@ -5,6 +5,6 @@ host: ``
 content-length: ``
 x-request: ``
 uuid: ``
-X-JA3-Sig: ``
-x-JA3-RAW: ``
+x-ja3-sig: ``
+x-ja3-raw: ``
 ``
diff --git 
a/tests/gold_tests/pluginTest/ja3_fingerprint/modify-incoming-proxy.gold 
b/tests/gold_tests/pluginTest/ja3_fingerprint/modify-incoming-proxy.gold
index 4ad44adc70..d04d9bed8f 100644
--- a/tests/gold_tests/pluginTest/ja3_fingerprint/modify-incoming-proxy.gold
+++ b/tests/gold_tests/pluginTest/ja3_fingerprint/modify-incoming-proxy.gold
@@ -5,5 +5,5 @@ Host: ``
 Content-Type: ``
 uuid: ``
 x-request: ``
-X-JA3-Sig: ``
+x-ja3-sig: ``
 ``
diff --git a/tests/gold_tests/pluginTest/ja3_fingerprint/modify-sent-proxy.gold 
b/tests/gold_tests/pluginTest/ja3_fingerprint/modify-sent-proxy.gold
index 89f8fb4ce6..4bcd35e40b 100644
--- a/tests/gold_tests/pluginTest/ja3_fingerprint/modify-sent-proxy.gold
+++ b/tests/gold_tests/pluginTest/ja3_fingerprint/modify-sent-proxy.gold
@@ -9,5 +9,5 @@ Client-ip: ``
 X-Forwarded-For: ``
 Via: ``
 Transfer-Encoding: ``
-X-JA3-Sig: ``
+x-ja3-sig: ``
 ``

Reply via email to