Fwd: Removed unused ngx_http_headers_out struct

牧童Damian ssdrliu at gmail.com
Sun Apr 23 09:27:02 UTC 2023


# HG changeset patch
# User Liu Yan <ssdrliu at gmail.com>
# Date 1682238162 -28800
#      Sun Apr 23 16:22:42 2023 +0800
# Node ID 6ae32d27ce0ae2e0be9f5999aa4ebf27a34e12a5
# Parent  77d5c662f3d9d9b90425128109d3369c30ef5f07
Removed unused code, maybe forgotten in 3b763d36e055

diff -r 77d5c662f3d9 -r 6ae32d27ce0a
src/http/ngx_http_header_filter_module.c
--- a/src/http/ngx_http_header_filter_module.c  Tue Apr 18 06:28:46 2023
+0300
+++ b/src/http/ngx_http_header_filter_module.c  Sun Apr 23 16:22:42 2023
+0800
@@ -132,27 +132,6 @@
 };


-ngx_http_header_out_t  ngx_http_headers_out[] = {
-    { ngx_string("Server"), offsetof(ngx_http_headers_out_t, server) },
-    { ngx_string("Date"), offsetof(ngx_http_headers_out_t, date) },
-    { ngx_string("Content-Length"),
-                 offsetof(ngx_http_headers_out_t, content_length) },
-    { ngx_string("Content-Encoding"),
-                 offsetof(ngx_http_headers_out_t, content_encoding) },
-    { ngx_string("Location"), offsetof(ngx_http_headers_out_t, location) },
-    { ngx_string("Last-Modified"),
-                 offsetof(ngx_http_headers_out_t, last_modified) },
-    { ngx_string("Accept-Ranges"),
-                 offsetof(ngx_http_headers_out_t, accept_ranges) },
-    { ngx_string("Expires"), offsetof(ngx_http_headers_out_t, expires) },
-    { ngx_string("Cache-Control"),
-                 offsetof(ngx_http_headers_out_t, cache_control) },
-    { ngx_string("ETag"), offsetof(ngx_http_headers_out_t, etag) },
-
-    { ngx_null_string, 0 }
-};
-
-
 static ngx_int_t
 ngx_http_header_filter(ngx_http_request_t *r)
 {
diff -r 77d5c662f3d9 -r 6ae32d27ce0a src/http/ngx_http_request.h
--- a/src/http/ngx_http_request.h       Tue Apr 18 06:28:46 2023 +0300
+++ b/src/http/ngx_http_request.h       Sun Apr 23 16:22:42 2023 +0800
@@ -611,7 +611,6 @@


 extern ngx_http_header_t       ngx_http_headers_in[];
-extern ngx_http_header_out_t   ngx_http_headers_out[];


 #define ngx_http_set_log_request(log, r)
   \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20230423/ac4eeffe/attachment.htm>


More information about the nginx-devel mailing list