about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/unicorn.rb2
-rw-r--r--lib/unicorn/http_request.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb
index af99474..43e2db7 100644
--- a/lib/unicorn.rb
+++ b/lib/unicorn.rb
@@ -152,7 +152,7 @@ module Unicorn
           logger.error "Client error: #{e.inspect}"
           logger.error e.backtrace.join("\n")
         end
-        @request.reset!
+        @request.reset
       end
     end
 
diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb
index 1e43bc9..aaa669a 100644
--- a/lib/unicorn/http_request.rb
+++ b/lib/unicorn/http_request.rb
@@ -14,7 +14,7 @@ module Unicorn
       @tempfile = @body = nil
     end
 
-    def reset!
+    def reset
       @body.truncate(0) rescue nil
       @body.close rescue nil
       @body = nil
@@ -91,7 +91,7 @@ module Unicorn
 
       # Any errors means we should delete the file, including if the file
       # is dumped.  Truncate it ASAP to help avoid page flushes to disk.
-      reset!
+      reset
       false
     end
   end