blob: 999ea8871b7fbfa7be102bacae7f26694827bf9c [file] [log] [blame]
Patrick Hemmere3faf022018-08-22 10:02:00 -04001core.register_action("bug", { "http-res" }, function(txn)
2 data = txn:get_priv()
3 if not data then
4 data = 0
5 end
6 data = data + 1
7 print(string.format("set to %d", data))
8 txn.http:res_set_status(200 + data)
9 txn:set_priv(data)
10end)
11
12core.register_service("fakeserv", "http", function(applet)
13 applet:set_status(200)
14 applet:start_response()
15end)