From 1b8a2957310bfbcc472937e4cc0522150f47d29a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 1 Feb 2013 10:04:42 +0100 Subject: don't rely on env for error_404 --- lib/zorglub/node.rb | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.1-2-g2b99