about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <bofh@yhbt.net>2021-03-12 22:14:16 -0400
committerEric Wong <bofh@yhbt.net>2021-03-13 02:28:19 +0000
commit2c9038cdc129272161336c0bd4facf61a681062e (patch)
treea7e897670891a4463252629dccf7c6ffc93eea9d /lib
parentc917ac526df214611ec33c21de2b070452ec8434 (diff)
downloadunicorn-2c9038cdc129272161336c0bd4facf61a681062e.tar.gz
Since we allocate a new request object for each request,
the #clear call is now unnecessary
Diffstat (limited to 'lib')
-rw-r--r--lib/unicorn/http_request.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb
index 6ca4592..e3ad592 100644
--- a/lib/unicorn/http_request.rb
+++ b/lib/unicorn/http_request.rb
@@ -62,7 +62,6 @@ 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)
-    clear
     e = env
 
     # From https://www.ietf.org/rfc/rfc3875: