Skip to content

Commit bb205cf

Browse files
authored
Bugfix/nginx unbuffered bug (#2638)
1 parent e13cab6 commit bb205cf

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.clangd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ CompileFlags:
22
Add:
33
- -xc++-header
44
- -DINTELLISENSE
5-
- -std=gnu++11
5+
- -std=gnu++14
66
- -ferror-limit=0

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)