Skip to content

Commit 9b49187

Browse files
committed
Update Content-Length in regression test JSON files
by running the following command: ``` (cd test; UPDATE_CONTENT_LENGTH=1 ./regression_tests format) ```
1 parent 191dba9 commit 9b49187

File tree

195 files changed

+2102
-1327
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+2102
-1327
lines changed

test/test-cases/regression/action-allow.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"User-Agent": "curl/7.38.0",
1818
"Accept": "*/*",
1919
"User-Agent": "My sweet little browser",
20-
"Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120"
20+
"Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120",
21+
"Content-Length": "0"
2122
},
2223
"uri": "/?key=value&key=other_value",
2324
"method": "GET",
@@ -27,7 +28,7 @@
2728
},
2829
"response": {
2930
"headers": {
30-
31+
"Content-Length": "0"
3132
},
3233
"body": [
3334
""
@@ -61,7 +62,8 @@
6162
"User-Agent": "curl/7.38.0",
6263
"Accept": "*/*",
6364
"User-Agent": "My sweet little browser",
64-
"Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120"
65+
"Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120",
66+
"Content-Length": "0"
6567
},
6668
"uri": "/?key=value&key=other_value",
6769
"method": "GET",
@@ -71,7 +73,7 @@
7173
},
7274
"response": {
7375
"headers": {
74-
76+
"Content-Length": "0"
7577
},
7678
"body": [
7779
""
@@ -104,7 +106,8 @@
104106
"User-Agent": "curl/7.38.0",
105107
"Accept": "*/*",
106108
"User-Agent": "My sweet little browser",
107-
"Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120"
109+
"Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120",
110+
"Content-Length": "0"
108111
},
109112
"uri": "/?key=value&key=other_value",
110113
"method": "GET",
@@ -114,7 +117,7 @@
114117
},
115118
"response": {
116119
"headers": {
117-
120+
"Content-Length": "0"
118121
},
119122
"body": [
120123
""

test/test-cases/regression/action-block.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"User-Agent": "curl/7.38.0",
1818
"Accept": "*/*",
1919
"User-Agent": "My sweet little browser",
20-
"Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120"
20+
"Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120",
21+
"Content-Length": "0"
2122
},
2223
"uri": "/path1",
2324
"method": "GET",
@@ -27,7 +28,7 @@
2728
},
2829
"response": {
2930
"headers": {
30-
31+
"Content-Length": "0"
3132
},
3233
"body": [
3334
""
@@ -61,7 +62,8 @@
6162
"User-Agent": "curl/7.38.0",
6263
"Accept": "*/*",
6364
"User-Agent": "My sweet little browser",
64-
"Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120"
65+
"Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120",
66+
"Content-Length": "0"
6567
},
6668
"uri": "/path1",
6769
"method": "GET",
@@ -71,7 +73,7 @@
7173
},
7274
"response": {
7375
"headers": {
74-
76+
"Content-Length": "0"
7577
},
7678
"body": [
7779
""

test/test-cases/regression/action-ctl_audit_engine.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"Keep-Alive": "300",
2424
"Connection": "keep-alive",
2525
"Pragma": "no-cache",
26-
"Cache-Control": "no-cache"
26+
"Cache-Control": "no-cache",
27+
"Content-Length": "0"
2728
},
2829
"uri": "/test.pl?parm1=test1&parm2=test2",
2930
"method": "GET",
@@ -34,7 +35,7 @@
3435
},
3536
"response": {
3637
"headers": {
37-
38+
"Content-Length": "0"
3839
},
3940
"body": [
4041
""

test/test-cases/regression/action-ctl_request_body_access.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"Host": "localhost",
1717
"User-Agent": "curl/7.38.0",
1818
"Accept": "*/*",
19-
"Content-Length": "330",
19+
"Content-Length": "493",
2020
"Content-Type": "multipart/form-data; boundary=------------------------756b6d74fa1a8ee2",
2121
"Expect": "100-continue"
2222
},
@@ -44,7 +44,8 @@
4444
"headers": {
4545
"Date": "Mon, 13 Jul 2015 20:02:41 GMT",
4646
"Last-Modified": "Sun, 26 Oct 2014 22:33:37 GMT",
47-
"Content-Type": "text/html"
47+
"Content-Type": "text/html",
48+
"Content-Length": "8"
4849
},
4950
"body": [
5051
"no need."
@@ -78,7 +79,7 @@
7879
"Host": "localhost",
7980
"User-Agent": "curl/7.38.0",
8081
"Accept": "*/*",
81-
"Content-Length": "330",
82+
"Content-Length": "493",
8283
"Content-Type": "multipart/form-data; boundary=------------------------756b6d74fa1a8ee2",
8384
"Expect": "100-continue"
8485
},
@@ -106,7 +107,8 @@
106107
"headers": {
107108
"Date": "Mon, 13 Jul 2015 20:02:41 GMT",
108109
"Last-Modified": "Sun, 26 Oct 2014 22:33:37 GMT",
109-
"Content-Type": "text/html"
110+
"Content-Type": "text/html",
111+
"Content-Length": "8"
110112
},
111113
"body": [
112114
"no need."
@@ -140,7 +142,7 @@
140142
"Host": "localhost",
141143
"User-Agent": "curl/7.38.0",
142144
"Accept": "*/*",
143-
"Content-Length": "330",
145+
"Content-Length": "493",
144146
"Content-Type": "multipart/form-data; boundary=------------------------756b6d74fa1a8ee2",
145147
"Expect": "100-continue"
146148
},
@@ -168,7 +170,8 @@
168170
"headers": {
169171
"Date": "Mon, 13 Jul 2015 20:02:41 GMT",
170172
"Last-Modified": "Sun, 26 Oct 2014 22:33:37 GMT",
171-
"Content-Type": "text/html"
173+
"Content-Type": "text/html",
174+
"Content-Length": "8"
172175
},
173176
"body": [
174177
"no need."

test/test-cases/regression/action-ctl_request_body_processor.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"User-Agent": "curl/7.38.0",
1919
"Accept": "*/*",
2020
"Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120",
21-
"Content-Type": "text/xml"
21+
"Content-Type": "text/xml",
22+
"Content-Length": "732"
2223
},
2324
"uri": "/?key=value&key=other_value",
2425
"method": "POST",
@@ -58,7 +59,7 @@
5859
},
5960
"response": {
6061
"headers": {
61-
62+
"Content-Length": "0"
6263
},
6364
"body": [
6465
""
@@ -94,7 +95,8 @@
9495
"User-Agent": "curl/7.38.0",
9596
"Accept": "*/*",
9697
"Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120",
97-
"Content-Type": "text/xml"
98+
"Content-Type": "text/xml",
99+
"Content-Length": "732"
98100
},
99101
"uri": "/?key=value&key=other_value",
100102
"method": "POST",
@@ -134,7 +136,7 @@
134136
},
135137
"response": {
136138
"headers": {
137-
139+
"Content-Length": "0"
138140
},
139141
"body": [
140142
""
@@ -169,7 +171,8 @@
169171
"User-Agent": "curl/7.38.0",
170172
"Accept": "*/*",
171173
"Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120",
172-
"Content-Type": "text/xml"
174+
"Content-Type": "text/xml",
175+
"Content-Length": "9"
173176
},
174177
"uri": "/?key=value&key=other_value",
175178
"method": "POST",
@@ -179,7 +182,7 @@
179182
},
180183
"response": {
181184
"headers": {
182-
185+
"Content-Length": "0"
183186
},
184187
"body": [
185188
""

test/test-cases/regression/action-ctl_request_body_processor_urlencoded.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"Host": "localhost",
1717
"User-Agent": "curl/7.38.0",
1818
"Accept": "*/*",
19-
"Content-Length": "330",
19+
"Content-Length": "14",
2020
"Content-Type": "application/lhebs",
2121
"Expect": "100-continue"
2222
},
@@ -30,7 +30,8 @@
3030
"headers": {
3131
"Date": "Mon, 13 Jul 2015 20:02:41 GMT",
3232
"Last-Modified": "Sun, 26 Oct 2014 22:33:37 GMT",
33-
"Content-Type": "text/html"
33+
"Content-Type": "text/html",
34+
"Content-Length": "8"
3435
},
3536
"body": [
3637
"no need."
@@ -64,7 +65,7 @@
6465
"Host": "localhost",
6566
"User-Agent": "curl/7.38.0",
6667
"Accept": "*/*",
67-
"Content-Length": "330",
68+
"Content-Length": "14",
6869
"Content-Type": "application/x-www-form-urlencoded",
6970
"Expect": "100-continue"
7071
},
@@ -78,7 +79,8 @@
7879
"headers": {
7980
"Date": "Mon, 13 Jul 2015 20:02:41 GMT",
8081
"Last-Modified": "Sun, 26 Oct 2014 22:33:37 GMT",
81-
"Content-Type": "text/html"
82+
"Content-Type": "text/html",
83+
"Content-Length": "8"
8284
},
8385
"body": [
8486
"no need."

test/test-cases/regression/action-ctl_rule_engine.json

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"Host": "localhost",
1717
"User-Agent": "curl/7.38.0",
1818
"Accept": "*/*",
19-
"Content-Length": "12",
19+
"Content-Length": "0",
2020
"Content-Type": "plain/text",
2121
"Expect": "100-continue"
2222
},
@@ -30,7 +30,8 @@
3030
"headers": {
3131
"Date": "Mon, 13 Jul 2015 20:02:41 GMT",
3232
"Last-Modified": "Sun, 26 Oct 2014 22:33:37 GMT",
33-
"Content-Type": "text/html"
33+
"Content-Type": "text/html",
34+
"Content-Length": "8"
3435
},
3536
"body": [
3637
"no need."
@@ -64,7 +65,7 @@
6465
"Host": "localhost",
6566
"User-Agent": "curl/7.38.0",
6667
"Accept": "*/*",
67-
"Content-Length": "12",
68+
"Content-Length": "0",
6869
"Content-Type": "plain/text",
6970
"Expect": "100-continue"
7071
},
@@ -78,7 +79,8 @@
7879
"headers": {
7980
"Date": "Mon, 13 Jul 2015 20:02:41 GMT",
8081
"Last-Modified": "Sun, 26 Oct 2014 22:33:37 GMT",
81-
"Content-Type": "text/html"
82+
"Content-Type": "text/html",
83+
"Content-Length": "8"
8284
},
8385
"body": [
8486
"no need."
@@ -112,7 +114,7 @@
112114
"Host": "localhost",
113115
"User-Agent": "curl/7.38.0",
114116
"Accept": "*/*",
115-
"Content-Length": "12",
117+
"Content-Length": "0",
116118
"Content-Type": "plain/text",
117119
"Expect": "100-continue"
118120
},
@@ -126,7 +128,8 @@
126128
"headers": {
127129
"Date": "Mon, 13 Jul 2015 20:02:41 GMT",
128130
"Last-Modified": "Sun, 26 Oct 2014 22:33:37 GMT",
129-
"Content-Type": "text/html"
131+
"Content-Type": "text/html",
132+
"Content-Length": "8"
130133
},
131134
"body": [
132135
"no need."
@@ -159,7 +162,7 @@
159162
"Host": "localhost",
160163
"User-Agent": "curl/7.38.0",
161164
"Accept": "*/*",
162-
"Content-Length": "12",
165+
"Content-Length": "0",
163166
"Content-Type": "plain/text",
164167
"Expect": "100-continue"
165168
},
@@ -173,7 +176,8 @@
173176
"headers": {
174177
"Date": "Mon, 13 Jul 2015 20:02:41 GMT",
175178
"Last-Modified": "Sun, 26 Oct 2014 22:33:37 GMT",
176-
"Content-Type": "text/html"
179+
"Content-Type": "text/html",
180+
"Content-Length": "8"
177181
},
178182
"body": [
179183
"no need."
@@ -205,7 +209,7 @@
205209
"Host": "localhost",
206210
"User-Agent": "curl/7.38.0",
207211
"Accept": "*/*",
208-
"Content-Length": "12",
212+
"Content-Length": "0",
209213
"Content-Type": "plain/text",
210214
"Expect": "100-continue"
211215
},
@@ -219,7 +223,8 @@
219223
"headers": {
220224
"Date": "Mon, 13 Jul 2015 20:02:41 GMT",
221225
"Last-Modified": "Sun, 26 Oct 2014 22:33:37 GMT",
222-
"Content-Type": "text/html"
226+
"Content-Type": "text/html",
227+
"Content-Length": "8"
223228
},
224229
"body": [
225230
"no need."
@@ -251,7 +256,7 @@
251256
"Host": "localhost",
252257
"User-Agent": "curl/7.38.0",
253258
"Accept": "*/*",
254-
"Content-Length": "12",
259+
"Content-Length": "0",
255260
"Content-Type": "plain/text",
256261
"Expect": "100-continue"
257262
},
@@ -265,7 +270,8 @@
265270
"headers": {
266271
"Date": "Mon, 13 Jul 2015 20:02:41 GMT",
267272
"Last-Modified": "Sun, 26 Oct 2014 22:33:37 GMT",
268-
"Content-Type": "text/html"
273+
"Content-Type": "text/html",
274+
"Content-Length": "8"
269275
},
270276
"body": [
271277
"no need."
@@ -297,7 +303,7 @@
297303
"Host": "localhost",
298304
"User-Agent": "curl/7.38.0",
299305
"Accept": "*/*",
300-
"Content-Length": "12",
306+
"Content-Length": "0",
301307
"Content-Type": "plain/text",
302308
"Expect": "100-continue"
303309
},
@@ -311,7 +317,8 @@
311317
"headers": {
312318
"Date": "Mon, 13 Jul 2015 20:02:41 GMT",
313319
"Last-Modified": "Sun, 26 Oct 2014 22:33:37 GMT",
314-
"Content-Type": "text/html"
320+
"Content-Type": "text/html",
321+
"Content-Length": "8"
315322
},
316323
"body": [
317324
"no need."

0 commit comments

Comments
 (0)