You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2022/06/15 22:26:11 UTC

[trafficserver] 02/02: Fix plugin stats_over_http OK reason phrase (#8902)

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

zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 09b378163ba85eca742c60471669a7d27e368f7f
Author: Robert O Butts <ro...@users.noreply.github.com>
AuthorDate: Tue Jun 14 15:16:09 2022 -0600

    Fix plugin stats_over_http OK reason phrase (#8902)
    
    (cherry picked from commit 18fc00a78aca1db1d39f3eab20bd9bf0986e5bd4)
---
 plugins/stats_over_http/stats_over_http.c                | 16 ++++++++--------
 .../stats_over_http/gold/stats_over_http_0_stderr.gold   |  2 +-
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/plugins/stats_over_http/stats_over_http.c b/plugins/stats_over_http/stats_over_http.c
index 5dae13b99..c480e7900 100644
--- a/plugins/stats_over_http/stats_over_http.c
+++ b/plugins/stats_over_http/stats_over_http.c
@@ -244,20 +244,20 @@ stats_add_data_to_resp_buffer(const char *s, stats_state *my_state)
   return s_len;
 }
 
-static const char RESP_HEADER_JSON[] = "HTTP/1.0 200 Ok\r\nContent-Type: text/json\r\nCache-Control: no-cache\r\n\r\n";
+static const char RESP_HEADER_JSON[] = "HTTP/1.0 200 OK\r\nContent-Type: text/json\r\nCache-Control: no-cache\r\n\r\n";
 static const char RESP_HEADER_JSON_GZIP[] =
-  "HTTP/1.0 200 Ok\r\nContent-Type: text/json\r\nContent-Encoding: gzip\r\nCache-Control: no-cache\r\n\r\n";
+  "HTTP/1.0 200 OK\r\nContent-Type: text/json\r\nContent-Encoding: gzip\r\nCache-Control: no-cache\r\n\r\n";
 static const char RESP_HEADER_JSON_DEFLATE[] =
-  "HTTP/1.0 200 Ok\r\nContent-Type: text/json\r\nContent-Encoding: deflate\r\nCache-Control: no-cache\r\n\r\n";
+  "HTTP/1.0 200 OK\r\nContent-Type: text/json\r\nContent-Encoding: deflate\r\nCache-Control: no-cache\r\n\r\n";
 static const char RESP_HEADER_JSON_BR[] =
-  "HTTP/1.0 200 Ok\r\nContent-Type: text/json\r\nContent-Encoding: br\r\nCache-Control: no-cache\r\n\r\n";
-static const char RESP_HEADER_CSV[] = "HTTP/1.0 200 Ok\r\nContent-Type: text/csv\r\nCache-Control: no-cache\r\n\r\n";
+  "HTTP/1.0 200 OK\r\nContent-Type: text/json\r\nContent-Encoding: br\r\nCache-Control: no-cache\r\n\r\n";
+static const char RESP_HEADER_CSV[] = "HTTP/1.0 200 OK\r\nContent-Type: text/csv\r\nCache-Control: no-cache\r\n\r\n";
 static const char RESP_HEADER_CSV_GZIP[] =
-  "HTTP/1.0 200 Ok\r\nContent-Type: text/csv\r\nContent-Encoding: gzip\r\nCache-Control: no-cache\r\n\r\n";
+  "HTTP/1.0 200 OK\r\nContent-Type: text/csv\r\nContent-Encoding: gzip\r\nCache-Control: no-cache\r\n\r\n";
 static const char RESP_HEADER_CSV_DEFLATE[] =
-  "HTTP/1.0 200 Ok\r\nContent-Type: text/csv\r\nContent-Encoding: deflate\r\nCache-Control: no-cache\r\n\r\n";
+  "HTTP/1.0 200 OK\r\nContent-Type: text/csv\r\nContent-Encoding: deflate\r\nCache-Control: no-cache\r\n\r\n";
 static const char RESP_HEADER_CSV_BR[] =
-  "HTTP/1.0 200 Ok\r\nContent-Type: text/csv\r\nContent-Encoding: br\r\nCache-Control: no-cache\r\n\r\n";
+  "HTTP/1.0 200 OK\r\nContent-Type: text/csv\r\nContent-Encoding: br\r\nCache-Control: no-cache\r\n\r\n";
 
 static int
 stats_add_resp_header(stats_state *my_state)
diff --git a/tests/gold_tests/pluginTest/stats_over_http/gold/stats_over_http_0_stderr.gold b/tests/gold_tests/pluginTest/stats_over_http/gold/stats_over_http_0_stderr.gold
index 637a06839..23cfc22ce 100644
--- a/tests/gold_tests/pluginTest/stats_over_http/gold/stats_over_http_0_stderr.gold
+++ b/tests/gold_tests/pluginTest/stats_over_http/gold/stats_over_http_0_stderr.gold
@@ -1,7 +1,7 @@
 ``
 > GET /_stats HTTP/1.1
 ``
-< HTTP/1.1 200 Ok
+< HTTP/1.1 200 OK
 < Content-Type: text/json
 < Cache-Control: no-cache
 < Date:``