about summary refs log tree commit homepage
path: root/lib/clogger/pure.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-08-30 22:27:26 -0700
committerEric Wong <normalperson@yhbt.net>2009-09-01 11:30:31 -0700
commitc9f68fc6294a59c31728bab9e01350c4b271fe30 (patch)
tree8932e18bf8e8c1c07161c08f9405ebf142ff873d /lib/clogger/pure.rb
parenta6e410b7f85f22e6adbc55eb9dd3a494ca7200b2 (diff)
downloadclogger-c9f68fc6294a59c31728bab9e01350c4b271fe30.tar.gz
The pure variant was using lower-case output instead
of upper case, the ext variant was actually fine in this
case.  This is for nginx output format compatibility.
Diffstat (limited to 'lib/clogger/pure.rb')
-rw-r--r--lib/clogger/pure.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/clogger/pure.rb b/lib/clogger/pure.rb
index 0a7aa24..ebbb1d6 100644
--- a/lib/clogger/pure.rb
+++ b/lib/clogger/pure.rb
@@ -62,7 +62,7 @@ private
   def byte_xs(s)
     s = s.dup
     s.force_encoding(Encoding::BINARY) if defined?(Encoding::BINARY)
-    s.gsub!(/(['"\x00-\x1f])/) { |x| "\\x#{$1.unpack('H2').first}" }
+    s.gsub!(/(['"\x00-\x1f])/) { |x| "\\x#{$1.unpack('H2').first.upcase}" }
     s
   end