about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/kcar/response.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/kcar/response.rb b/lib/kcar/response.rb
index c74bb4b..af15ca0 100644
--- a/lib/kcar/response.rb
+++ b/lib/kcar/response.rb
@@ -6,10 +6,6 @@
 class Kcar::Response
   attr_accessor :sock, :hdr, :unchunk, :buf, :parser
 
-  # :stopdoc:
-  Parser = Kcar::Parser
-  # :startdoc:
-
   # By default we readpartial at most 16K off a socket at once
   READ_SIZE = 0x4000
 
@@ -17,7 +13,8 @@ class Kcar::Response
   # method.  +unchunk+ may be set to disable transparent unchunking
   # +hdr+ may be a Hash, Array, or Rack::Utils::HeaderHash
   def initialize(sock, hdr = {}, unchunk = true)
-    @sock, @hdr, @unchunk, @buf, @parser = sock, hdr, unchunk, "", Parser.new
+    @sock, @hdr, @unchunk, @buf =  sock, hdr, unchunk, ""
+    @parser = Kcar::Parser.new
   end
 
   # returns a 3-element array that resembles a Rack response, but is