Skip to content

Commit 58872e7

Browse files
asterite3Felipe Zimmerle
authored andcommitted
adds a test for validateByteRange with bytes > 127
1 parent 86e74fa commit 58872e7

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[
2+
{
3+
"enabled":1,
4+
"version_min":300000,
5+
"title":"Testing Operator :: @validateByteRange with bytes > 127",
6+
"client":{
7+
"ip":"200.249.12.31",
8+
"port":123
9+
},
10+
"server":{
11+
"ip":"200.249.12.31",
12+
"port":80
13+
},
14+
"request":{
15+
"headers":{
16+
"Host":"localhost",
17+
"User-Agent":"curl/7.38.0",
18+
"Accept":"*/*",
19+
"Content-Length": "27",
20+
"Content-Type": "application/x-www-form-urlencoded"
21+
},
22+
"uri":"/%D0%A2%D0%B0%D1%80%D0%B0%D0%B1%D0%B0%D0%BD",
23+
"method":"GET",
24+
"body": [ ]
25+
},
26+
"response":{
27+
"headers":{},
28+
"body":[
29+
"no need."
30+
]
31+
},
32+
"expected":{
33+
"debug_log":"Rule returned 0."
34+
},
35+
"rules":[
36+
"SecRuleEngine On",
37+
"SecRule REQUEST_URI \"@validateByteRange 37-102, 127-255\" \"id:1,phase:2,pass,t:trim\""
38+
]
39+
}
40+
]

0 commit comments

Comments
 (0)