about summary refs log tree commit homepage
path: root/lib/unicorn/app/old_rails/static.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-09-08 15:10:04 -0700
committerEric Wong <normalperson@yhbt.net>2009-09-08 16:02:13 -0700
commit84081b4508c51d04a4a9019fcffe0e034b0b2d39 (patch)
tree3b53874b79b0a897ac7924a245d8939859d2f565 /lib/unicorn/app/old_rails/static.rb
parente9b8313d80c9ca870a25f7047454c98b81dd7c85 (diff)
downloadunicorn-84081b4508c51d04a4a9019fcffe0e034b0b2d39.tar.gz
This ensures any string literals that pop up in *our* code will
just be a bag of bytes.  This shouldn't affect/fix/break
existing apps in most cases, but most constants will always have
the "correct" encoding (none!) to be consistent with HTTP/socket
expectations.  Since this comment affects things only on a
per-source basis, it won't affect existing apps with the
exception of strings we pass to the Rack application.

This will eventually allow us to get rid of that Unicorn::Z
constant, too.
Diffstat (limited to 'lib/unicorn/app/old_rails/static.rb')
-rw-r--r--lib/unicorn/app/old_rails/static.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/unicorn/app/old_rails/static.rb b/lib/unicorn/app/old_rails/static.rb
index e3f40bf..a1f3b6b 100644
--- a/lib/unicorn/app/old_rails/static.rb
+++ b/lib/unicorn/app/old_rails/static.rb
@@ -1,3 +1,5 @@
+# -*- encoding: binary -*-
+
 # This code is based on the original Rails handler in Mongrel
 # Copyright (c) 2005 Zed A. Shaw
 # Copyright (c) 2009 Eric Wong