about summary refs log tree commit homepage
path: root/bin/unicorn
diff options
context:
space:
mode:
Diffstat (limited to 'bin/unicorn')
-rwxr-xr-xbin/unicorn1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/unicorn b/bin/unicorn
index a34d9bc..cfc81da 100755
--- a/bin/unicorn
+++ b/bin/unicorn
@@ -124,6 +124,7 @@ app = lambda do ||
   inner_app = case config
   when /\.ru$/
     raw = File.open(config, "rb") { |fp| fp.sysread(fp.stat.size) }
+    raw.sub!(/^__END__\n.*/, '')
     eval("Rack::Builder.new {(#{raw}\n)}.to_app", nil, config)
   else
     require config