From 894795fa351f7be18caf3161d35afd681df0cebe Mon Sep 17 00:00:00 2001 From: Yann Esposito Date: Fri, 4 May 2012 11:24:50 +0200 Subject: [PATCH] Fixed some issue with last unicorn --- config.ru | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.ru b/config.ru index ba6eb35c6..ac9d2efc8 100644 --- a/config.ru +++ b/config.ru @@ -22,7 +22,9 @@ module ::Rack @next += 1 end tmp=(404 == resp[0] ? @app.call : resp) - tmp[1]["Content-Type"]=tmp[1]["Content-Type"] + "; charset=utf-8" + if not tmp[1].nil? and not tmp[1]["Content-Type"].nil? then + tmp[1]["Content-Type"]=tmp[1]["Content-Type"] + "; charset=utf-8" + end return tmp end