From 163a205cb7996f893297ff253ac1cc343012c4e1 Mon Sep 17 00:00:00 2001 From: xfeep Date: Sat, 18 Jul 2015 21:06:13 +0800 Subject: [PATCH 1/3] remove duplicate include --- src/c/ngx_http_access_plus_module.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/c/ngx_http_access_plus_module.c b/src/c/ngx_http_access_plus_module.c index b71f200..1c1dc79 100644 --- a/src/c/ngx_http_access_plus_module.c +++ b/src/c/ngx_http_access_plus_module.c @@ -7,10 +7,6 @@ #include #include -#include -#include -#include - static char* ngx_http_access_plus_methods[] = {"unknown", "get", "head", "post", "put", "delete", "mkcol", "copy", "move", "options", "propfind", "proppatch", "lock", "unlock", "patch", "trace", NULL}; From eb1981771dfd9e58c3e8042a24de4e09f44b1235 Mon Sep 17 00:00:00 2001 From: xfeep Date: Wed, 27 Nov 2019 15:23:10 +0800 Subject: [PATCH 2/3] Fix copyright info The old copyright information is auto created by eclipse template and we fix it now because the code is based on the top of ngx_http_access_module.c --- LICENSE | 5 ++++- src/c/ngx_http_access_plus_module.c | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/LICENSE b/LICENSE index 8f39ba0..a51035b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,7 @@ -Copyright (c) Zhang, Yuexiang (xfeep) +Copyright (C) 2002-2019 Igor Sysoev +Copyright (C) 2011-2019 Nginx, Inc. +Copyright (c) 2016-2019 Zhang, Yuexiang (xfeep) + All rights reserved. The BSD 3-Clause License diff --git a/src/c/ngx_http_access_plus_module.c b/src/c/ngx_http_access_plus_module.c index 1c1dc79..3dab4c6 100644 --- a/src/c/ngx_http_access_plus_module.c +++ b/src/c/ngx_http_access_plus_module.c @@ -1,5 +1,7 @@ /** - * Copyright (C) Zhang,Yuexiang (xfeep) + * Copyright (C) Igor Sysoev + * Copyright (C) Nginx, Inc. + * Copyright (C) Zhang,Yuexiang (xfeep) * */ From 39cbcc00bca54ac243837e1ba99c4cb8b5ff7562 Mon Sep 17 00:00:00 2001 From: "Juliy V. Chirkov" Date: Mon, 5 Aug 2024 15:59:59 +0300 Subject: [PATCH 3/3] Makes the module compatible with ``--add-dynamic-module`` option Makes the module compatible with ``--add-dynamic-module`` option --- src/c/config | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/c/config b/src/c/config index 13dcef6..6155cc9 100644 --- a/src/c/config +++ b/src/c/config @@ -1,5 +1,12 @@ ngx_addon_name=ngx_http_access_plus_module -HTTP_MODULES="$HTTP_MODULES ngx_http_access_plus_module" -NGX_ADDON_SRCS="$NGX_ADDON_SRCS \ - $ngx_addon_dir/ngx_http_access_plus_module.c \ -" + +if test -n "$ngx_module_link"; then + ngx_module_type=HTTP + ngx_module_name=$ngx_addon_name + ngx_module_srcs="$ngx_addon_dir/$ngx_addon_name.c" + + . auto/module +else + HTTP_MODULES="$HTTP_MODULES $ngx_addon_name" + NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/$ngx_addon_name.c" +fi