summaryrefslogtreecommitdiffstats
path: root/integration-tests/req-set-header.rb
diff options
context:
space:
mode:
Diffstat (limited to 'integration-tests/req-set-header.rb')
-rw-r--r--integration-tests/req-set-header.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/integration-tests/req-set-header.rb b/integration-tests/req-set-header.rb
new file mode 100644
index 0000000..986f128
--- /dev/null
+++ b/integration-tests/req-set-header.rb
@@ -0,0 +1,7 @@
+class App
+ def on_req(env)
+ env.req.set_header "User-Agent", "mruby"
+ end
+end
+
+App.new