summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-02-12 16:17:20 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-02-12 16:17:20 +0100
commitf375bbf5b8e3dc463b71dfc9fe02299da695d92f (patch)
tree151c67067bff91b1715f89410d778bad26a5faa3 /lib
parent060756af9e496d076823ca79f5e59488ec028209 (diff)
downloadzorglub-f375bbf5b8e3dc463b71dfc9fe02299da695d92f.zip
zorglub-f375bbf5b8e3dc463b71dfc9fe02299da695d92f.tar.gz
accept Content-Type change via rack response
Diffstat (limited to 'lib')
-rw-r--r--lib/zorglub/node.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb
index 8b1bee0..0e4ef20 100644
--- a/lib/zorglub/node.rb
+++ b/lib/zorglub/node.rb
@@ -276,7 +276,7 @@ module Zorglub
catch(:stop_realize) {
feed!
response.write @content
- response.header['Content-Type'] = ( @mime || 'text/html' )
+ response.header['Content-Type'] ||= ( @mime || 'text/html' )
response.finish
response
}