File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
src/BenchmarksApps/TLS/scripts Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ scenarios:
110
110
variables :
111
111
connections : 32
112
112
serverScheme : https
113
+ scriptArguments : " {{serverAddress}}:{{serverPort}}"
113
114
script : https://raw.githubusercontent.com/aspnet/Benchmarks/main/src/BenchmarksApps/TLS/scripts/invalid-header.lua?raw=true
114
115
115
116
kestrel-hostheader-mismatch :
Original file line number Diff line number Diff line change 1
1
-- sends an invalid HTTP header (with space in the name)
2
- request = function () -- before each request https://github.com/wg/wrk/blob/a211dd5a7050b1f9e8a9870b95513060e72ac4a0/SCRIPTING#L42
2
+
3
+ local host = " localhost"
4
+
5
+ init = function (args )
6
+ if # args > 0 then
7
+ host = args [1 ]
8
+ end
9
+ end
10
+
11
+ -- before each request https://github.com/wg/wrk/blob/a211dd5a7050b1f9e8a9870b95513060e72ac4a0/SCRIPTING#L42
12
+ request = function ()
3
13
return " GET /hello-world HTTP/1.1\r\n " ..
4
- " Host: " .. args [ 1 ] .. " \r\n " ..
14
+ " Host: " .. host .. " \r\n " ..
5
15
" Invalid Header: value\r\n " ..
6
16
" \r\n "
7
17
end
You can’t perform that action at this time.
0 commit comments