Project

General

Profile

Bug #4913

[WEBrick] Access log bug

Added by hron84 (Gabor Garami) about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 1.8.7 (2011-02-18 patchlevel 334) [i586-linux]
[ruby-core:37263]

Description

The access log feature of WEBrick doesn't works correctly. In the COMBINED log format the %{Referer}i and %{User-agent}i not be expanded.

I attached a patch what solves this problem.

Regards,


Files

accesslog.diff (509 Bytes) accesslog.diff hron84 (Gabor Garami), 06/22/2011 02:31 AM

Associated revisions

Revision 2f50fc74
Added by nahi (Hiroshi Nakamura) about 8 years ago

backported r26281 from ruby_1_8

  • lib/webrick/accesslog.rb (WEBrick::AccessLog.format): log parameter
    embedding did not work. See #4913.

  • test/webrick/test_accesslog.rb: Add for test it.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@32209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

History

#1

Updated by nahi (Hiroshi Nakamura) about 8 years ago

  • Category set to lib
  • Status changed from Open to Closed
  • Assignee set to nahi (Hiroshi Nakamura)
  • Target version set to Ruby 1.8.7

Fixed at r32209. Thanks!

Also available in: Atom PDF