From 62c844e343978f233e4f2567fb344411c39e263c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 5 Jan 2011 14:06:00 -0800 Subject: http_parser: add clear method, deprecate reset But allows small optimizations to be made to avoid constant/instance variable lookups later :) --- lib/unicorn/http_request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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: -- cgit v1.2.3-24-ge0c7