integration: Fix test failures

This commit is contained in:
Tatsuhiro Tsujikawa 2015-09-05 01:24:43 +09:00
parent b4709b9e8c
commit d348ea3384
3 changed files with 7 additions and 5 deletions

View File

@ -1,3 +1,3 @@
Nghttpx.run do |resp, req|
req.set_header "User-Agent", "mruby"
Nghttpx.run do |env|
env.req.set_header "User-Agent", "mruby"
end

View File

@ -1,3 +1,3 @@
Nghttpx.run do |resp, req|
resp.set_header "Alpha", "bravo"
Nghttpx.run do |env|
env.resp.set_header "Alpha", "bravo"
end

View File

@ -1,4 +1,6 @@
Nghttpx.run do |resp, req|
Nghttpx.run do |env|
resp = env.resp
resp.clear_headers
resp.status = 404
resp.add_header "from", "mruby"