Skip to content

Commit 0401664

Browse files
committed
fix 2575
1 parent f9d9f52 commit 0401664

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Release 6.1.1 (Not yet released)
33
* [Ruby] Improve support for Ruby 4 and Frozen String Literals. Closes GH-2619.
44
* [Ubuntu] Add packages for Ubuntu 25.10 "questing", remove packages for Ubuntu 25.04 "plucky".
55
* Upgrade Boost from 1.87 -> 1.89.
6+
* [Nginx] Fixes bug with unbuffered uploads. Closes GH-2575.
67
* [Nginx] Upgrades preferred Nginx to 1.28.0 from 1.26.3.
78
* [Nginx] The preferred PCRE2 version is now 10.46 (previously 10.45).
89
* Updated various library versions used in precompiled binaries (used for e.g. gem installs):

src/nginx_module/ContentHandler.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,6 +1058,7 @@ create_request(ngx_http_request_t *r)
10581058
body = r->upstream->request_bufs;
10591059
r->upstream->request_bufs = cl;
10601060

1061+
if (!r->request_body_no_buffering) {
10611062
while (body) {
10621063
if (r->headers_in.chunked && r->request_body_no_buffering) {
10631064
/* If Transfer-Encoding is chunked, then Nginx dechunks the body.
@@ -1113,6 +1114,7 @@ create_request(ngx_http_request_t *r)
11131114
cl->buf = b;
11141115
}
11151116
}
1117+
}
11161118

11171119
b->flush = 1;
11181120
cl->next = NULL;

0 commit comments

Comments
 (0)