diff options
Diffstat (limited to 'lib/unicorn/http_request.rb')
-rw-r--r-- | lib/unicorn/http_request.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |