summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-02-01 10:04:42 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2013-02-01 10:04:42 +0100
commit1b8a2957310bfbcc472937e4cc0522150f47d29a (patch)
treea6aea4dedd06ed2d696340237ca200b43f9c0fe8 /lib
parent2d0ad8b3ed8bbf2451560460965bc084c7b8576e (diff)
downloadzorglub-1b8a2957310bfbcc472937e4cc0522150f47d29a.zip
zorglub-1b8a2957310bfbcc472937e4cc0522150f47d29a.tar.gz
don't rely on env for error_404
Diffstat (limited to 'lib')
-rw-r--r--lib/zorglub/node.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb
index 9d71a8c..d22c1c9 100644
--- a/lib/zorglub/node.rb
+++ b/lib/zorglub/node.rb
@@ -240,7 +240,7 @@ module Zorglub
resp = node.response
resp.status = 404
resp['Content-Type'] = 'text/plain'
- resp.write "%s mapped at %p can't respond to : %p" % [ node.class.name, node.map, node.request.env['PATH_INFO'] ]
+ resp.write "%s mapped at %p can't respond to : %p" % [ node.class.name, node.map, node.meth ]
resp
end
#
@@ -249,7 +249,6 @@ module Zorglub
attr_reader :request, :response, :content, :mime, :state, :engine, :meth, :args
#
def initialize env, meth, args, partial=false
- @env = env
@meth = meth
@args = args
@partial = partial