Skip to content

Commit d0932b7

Browse files
committed
try?
1 parent 9d3c6e0 commit d0932b7

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed
Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1 @@
1-
-- sends an invalid HTTP header (with space in the name)
2-
3-
local host = "localhost"
4-
5-
init = function(args)
6-
print("wrk ARGS:", #arguments, arguments[1])
7-
if #args > 0 then
8-
host = args[1]
9-
end
10-
end
11-
12-
-- before each request https://github.com/wg/wrk/blob/a211dd5a7050b1f9e8a9870b95513060e72ac4a0/SCRIPTING#L42
13-
request = function()
14-
return "GET /hello-world HTTP/1.1\r\n" ..
15-
"Host: " .. host .. "\r\n" ..
16-
"Invalid Header: value\r\n" ..
17-
"\r\n"
18-
end
1+
wrk.headers["Invalid Header"] = "value"

0 commit comments

Comments
 (0)