diff options
Diffstat (limited to 'test/htest.lua')
-rwxr-xr-x | test/htest.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/htest.lua b/test/htest.lua index ac54489..2be8e6c 100755 --- a/test/htest.lua +++ b/test/htest.lua @@ -40,7 +40,7 @@ GET('/self', function(req, res) end) GET('/dump', function(req, res) - local accept = req.headers['Accept'] + local accept = req.headers['accept'] if accept and accept:match('application/xhtml%+xml') then res.headers['Content-Type'] = 'application/xhtml+xml' else @@ -129,7 +129,7 @@ end) POST('/quit', function(req, res) local body = req:body() - req.headers['Content-Type'] = 'text/plain' + res.headers['Content-Type'] = 'text/plain' if body == 'quit=secret' then res:add("Bye o/\n") |