From bf680b1a61ab17b6a0e17432fd4ab22358ec83bd Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 5 Feb 2009 14:11:09 -0800 Subject: Remove StringIO usage in HeaderOut It's more GC-friendly to just use an array than to repeatedly append short strings on top of each other. I also find StringIO confusing... --- lib/unicorn/const.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/unicorn/const.rb') diff --git a/lib/unicorn/const.rb b/lib/unicorn/const.rb index 56c3bb4..8cefd2b 100644 --- a/lib/unicorn/const.rb +++ b/lib/unicorn/const.rb @@ -101,7 +101,6 @@ module Unicorn HEAD="HEAD".freeze # ETag is based on the apache standard of hex mtime-size-inode (inode is 0 on win32) ETAG_FORMAT="\"%x-%x-%x\"".freeze - HEADER_FORMAT="%s: %s\r\n".freeze LINE_END="\r\n".freeze REMOTE_ADDR="REMOTE_ADDR".freeze HTTP_X_FORWARDED_FOR="HTTP_X_FORWARDED_FOR".freeze -- cgit v1.2.3-24-ge0c7