Skip to content

Commit fd1b8fa

Browse files
committed
fix vs test and snaps
1 parent e075a74 commit fd1b8fa

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

internal/configs/version1/__snapshots__/template_test.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,7 @@ server {
733733
proxy_read_timeout 10s;
734734
proxy_send_timeout 10s;
735735
client_max_body_size 2m;
736+
client_body_buffer_size 16k;
736737
proxy_set_header Host $host;
737738
proxy_set_header X-Real-IP $remote_addr;
738739
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -1268,6 +1269,7 @@ server {
12681269
proxy_read_timeout 10s;
12691270
proxy_send_timeout 10s;
12701271
client_max_body_size 2m;
1272+
client_body_buffer_size 16k;
12711273
12721274
proxy_set_header Host $host;
12731275
proxy_set_header X-Real-IP $remote_addr;

internal/configs/version2/nginx-plus.virtualserver.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ server {
675675
{{ $proxyOrGRPC }}_send_timeout {{ $l.ProxySendTimeout }};
676676
client_max_body_size {{ $l.ClientMaxBodySize }};
677677
{{- if $l.ClientBodyBufferSize }}
678-
client_body_buffer_size {{ $l.ClientBodyBufferSize }}
678+
client_body_buffer_size {{ $l.ClientBodyBufferSize }};
679679
{{- end }}
680680

681681
{{- if $l.ProxyMaxTempFileSize }}

internal/configs/virtualserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2647,7 +2647,7 @@ func generateLocationForProxying(path string, upstreamName string, upstream conf
26472647
ProxyReadTimeout: generateTimeWithDefault(upstream.ProxyReadTimeout, cfgParams.ProxyReadTimeout),
26482648
ProxySendTimeout: generateTimeWithDefault(upstream.ProxySendTimeout, cfgParams.ProxySendTimeout),
26492649
ClientMaxBodySize: generateString(upstream.ClientMaxBodySize, cfgParams.ClientMaxBodySize),
2650-
ClientBodyBufferSize: upstream.ClientBodyBufferSize,
2650+
ClientBodyBufferSize: generateString(upstream.ClientBodyBufferSize, cfgParams.ClientBodyBufferSize),
26512651
ProxyMaxTempFileSize: cfgParams.ProxyMaxTempFileSize,
26522652
ProxyBuffering: generateBool(upstream.ProxyBuffering, cfgParams.ProxyBuffering),
26532653
ProxyBuffers: generateBuffers(upstream.ProxyBuffers, cfgParams.ProxyBuffers),

internal/configs/virtualserver_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16271,6 +16271,7 @@ func TestGenerateLocationForGrpcProxying(t *testing.T) {
1627116271
ProxyReadTimeout: "31s",
1627216272
ProxySendTimeout: "32s",
1627316273
ClientMaxBodySize: "1m",
16274+
ClientBodyBufferSize: "16k",
1627416275
ProxyMaxTempFileSize: "1024m",
1627516276
ProxyBuffering: true,
1627616277
ProxyBuffers: "8 4k",
@@ -16290,6 +16291,7 @@ func TestGenerateLocationForGrpcProxying(t *testing.T) {
1629016291
ProxyReadTimeout: "31s",
1629116292
ProxySendTimeout: "32s",
1629216293
ClientMaxBodySize: "1m",
16294+
ClientBodyBufferSize: "16k",
1629316295
ProxyMaxTempFileSize: "1024m",
1629416296
ProxyBuffering: true,
1629516297
ProxyBuffers: "8 4k",

0 commit comments

Comments
 (0)