about summary refs log tree commit homepage
path: root/lib/unicorn/http_request.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-05 14:06:00 -0800
committerEric Wong <normalperson@yhbt.net>2011-01-05 15:09:05 -0800
commit62c844e343978f233e4f2567fb344411c39e263c (patch)
tree00f196f0c7a20fc43f92568ae0c8e1b6cb83c9b9 /lib/unicorn/http_request.rb
parentbd397ee11b60243ef15c5558c4309e46e27e6192 (diff)
downloadunicorn-62c844e343978f233e4f2567fb344411c39e263c.tar.gz
But allows small optimizations to be made to avoid
constant/instance variable lookups later :)
Diffstat (limited to 'lib/unicorn/http_request.rb')
-rw-r--r--lib/unicorn/http_request.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb
index 1e3ac26..2c52631 100644
--- a/lib/unicorn/http_request.rb
+++ b/lib/unicorn/http_request.rb
@@ -50,7 +50,7 @@ class Unicorn::HttpParser
   # This does minimal exception trapping and it is up to the caller
   # to handle any socket errors (e.g. user aborted upload).
   def read(socket)
-    reset
+    clear
     e = env
 
     # From http://www.ietf.org/rfc/rfc3875: