summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-04-23 18:57:46 -0700
committerEric Wong <normalperson@yhbt.net>2009-04-23 18:57:46 -0700
commit86e4849c08da3c5917844ce52782515731ef8df1 (patch)
tree7605d749f1028830a2ad3a1aecf3d44a7bc76938
parentd9c97a2e04e0455e2d2aa3e5ec6439c3b97a1b7c (diff)
It was just a waste of space and would've caused line wrapping.
This reinstates the "unicorn" prefix when we create tempfiles,
too.
-rw-r--r--lib/unicorn/const.rb2
-rw-r--r--lib/unicorn/http_request.rb2
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/unicorn/const.rb b/lib/unicorn/const.rb
index ea9312d..c05d333 100644
--- a/lib/unicorn/const.rb
+++ b/lib/unicorn/const.rb
@@ -58,8 +58,6 @@ module Unicorn
 
     UNICORN_VERSION="0.5.3".freeze
 
-    UNICORN_TMP_BASE="unicorn".freeze
-
     DEFAULT_HOST = "0.0.0.0".freeze # default TCP listen host address
     DEFAULT_PORT = "8080".freeze    # default TCP listen port
     DEFAULT_LISTEN = "#{DEFAULT_HOST}:#{DEFAULT_PORT}".freeze
diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb
index 0de496f..24da085 100644
--- a/lib/unicorn/http_request.rb
+++ b/lib/unicorn/http_request.rb
@@ -96,7 +96,7 @@ module Unicorn
       remain = content_length - http_body.length
 
       # must read more data to complete body
-      @body = remain < Const::MAX_BODY ? StringIO.new : Tempfile.new('')
+      @body = remain < Const::MAX_BODY ? StringIO.new : Tempfile.new('unicorn')
       @body.binmode
       @body.sync = true
       @body.syswrite(http_body)