Skip to content

Commit

Permalink
integration: Fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuhiro-t committed Sep 4, 2015
1 parent b4709b9 commit d348ea3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions integration-tests/req-set-header.rb
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions integration-tests/resp-set-header.rb
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion integration-tests/return.rb
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit d348ea3

Please sign in to comment.