about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--bin/mongrel_rails1
-rw-r--r--lib/mongrel.rb3
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/mongrel_rails b/bin/mongrel_rails
index e9d4fa9..cb891e1 100644
--- a/bin/mongrel_rails
+++ b/bin/mongrel_rails
@@ -126,6 +126,7 @@ class StartCommand < Mongrel::Command::Command
       server.acceptor.join
     rescue Interrupt
       puts "Interrupted."
+      raise
     end
   end
 
diff --git a/lib/mongrel.rb b/lib/mongrel.rb
index 50827ef..05d7b71 100644
--- a/lib/mongrel.rb
+++ b/lib/mongrel.rb
@@ -623,10 +623,9 @@ module Mongrel
     # length -- Ignored since Mongrel figures this out from what you write to output.
     #
     def header(options = "text/html")
-      
       # if they pass in a string then just write the Content-Type
       if options.class == String
-        @head['Content-Type'] = options
+        @head['Content-Type'] = options unless @head['Content-Type']
       else
         # convert the given options into what Mongrel wants
         @head['Content-Type'] = options['type'] || "text/html"