blob: d3f3a1051513e3741523e36cea48e050f44055f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
=encoding utf-8
=head1 Name
chunked_encoding_from_backend
=head1
B<Q:>
My backend server appears to send HTTPE<sol>1.0 responses using
chunked encoding but nginx doesn’t handle it correctly.
For instance, I’m using nginx as a frontend to my node.js
application and instead of pure JSON from backend, nginx
returns something framed in decimal numbers like
47
{"error":"query error","message":"Parameter(s) missing: user,password"}
0
E<nbsp>
B<A:>
Your backend violates HTTP specification (see
L<RFC 2616,
"3.6 Transfer Codings"|https://datatracker.ietf.org/doc/html/rfc2616#section-3.6>).
The "chunked" transfer-codings must not be used with HTTPE<sol>1.0.
You’d need to either fix your backend application or upgrade
to nginx version 1.1.4 and newer, where an additional code
was introduced to handle such erratic backend behavior.
|