Skip to content

Commit 48b4d47

Browse files
committed
send invalid header req
1 parent 3e7fb8f commit 48b4d47

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

scenarios/rejection.benchmarks.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,11 @@ scenarios:
6969
application:
7070
job: httpSysServer
7171
load:
72-
job: httpclient
72+
job: wrk
7373
variables:
74-
path: /hello-world
7574
connections: 32
7675
serverScheme: https
77-
customHeaders:
78-
- "X-Custom: Québec"
76+
script: https://raw.githubusercontent.com/aspnet/Benchmarks/main/src/BenchmarksApps/TLS/scripts/invalid-header.lua
7977

8078
httpsys-hostheader-mismatch:
8179
application:
@@ -108,13 +106,11 @@ scenarios:
108106
application:
109107
job: kestrelServer
110108
load:
111-
job: httpclient
109+
job: wrk
112110
variables:
113-
path: /hello-world
114111
connections: 32
115112
serverScheme: https
116-
customHeaders:
117-
- "X-Custom: Québec"
113+
script: https://raw.githubusercontent.com/aspnet/Benchmarks/main/src/BenchmarksApps/TLS/scripts/invalid-header.lua
118114

119115
kestrel-hostheader-mismatch:
120116
application:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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
3+
return "GET /hello-world HTTP/1.1\r\n" ..
4+
"Host: " .. args[1] .. "\r\n" ..
5+
"Invalid Header: value\r\n" ..
6+
"\r\n"
7+
end

0 commit comments

Comments
 (0)