Skip to content

Commit 5a2fd9c

Browse files
authored
fix: implicit declaration of function (#15)
1 parent 3afc4f4 commit 5a2fd9c

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

patch/1.19.3/nginx-client_max_body_size.patch

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
diff --git src/http/ngx_http_core_module.c src/http/ngx_http_core_module.c
2-
index 6388140..a500aab 100644
2+
index 6388140..b900467 100644
33
--- src/http/ngx_http_core_module.c
44
+++ src/http/ngx_http_core_module.c
5-
@@ -985,7 +985,12 @@ ngx_http_core_find_config_phase(ngx_http_request_t *r,
5+
@@ -8,6 +8,9 @@
6+
#include <ngx_config.h>
7+
#include <ngx_core.h>
8+
#include <ngx_http.h>
9+
+#if (NGX_HTTP_APISIX)
10+
+#include <ngx_http_apisix_module.h>
11+
+#endif
12+
13+
14+
typedef struct {
15+
@@ -985,7 +988,12 @@ ngx_http_core_find_config_phase(ngx_http_request_t *r,
616
"http cl:%O max:%O",
717
r->headers_in.content_length_n, clcf->client_max_body_size);
818

@@ -81,10 +91,20 @@ index 71d7e9a..2844be9 100644
8191
{
8292
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
8393
diff --git src/http/v2/ngx_http_v2.c src/http/v2/ngx_http_v2.c
84-
index 43a4fde..d22eb4d 100644
94+
index 43a4fde..43c78f9 100644
8595
--- src/http/v2/ngx_http_v2.c
8696
+++ src/http/v2/ngx_http_v2.c
87-
@@ -4211,10 +4211,18 @@ ngx_http_v2_filter_request_body(ngx_http_request_t *r)
97+
@@ -9,6 +9,9 @@
98+
#include <ngx_core.h>
99+
#include <ngx_http.h>
100+
#include <ngx_http_v2_module.h>
101+
+#if (NGX_HTTP_APISIX)
102+
+#include <ngx_http_apisix_module.h>
103+
+#endif
104+
105+
106+
typedef struct {
107+
@@ -4211,10 +4214,18 @@ ngx_http_v2_filter_request_body(ngx_http_request_t *r)
88108
}
89109

90110
} else {

0 commit comments

Comments
 (0)