Fixed some issue with last unicorn

This commit is contained in:
Yann Esposito 2012-05-04 11:24:50 +02:00
parent 892be66a95
commit 894795fa35

View file

@ -22,7 +22,9 @@ module ::Rack
@next += 1 @next += 1
end end
tmp=(404 == resp[0] ? @app.call : resp) tmp=(404 == resp[0] ? @app.call : resp)
if not tmp[1].nil? and not tmp[1]["Content-Type"].nil? then
tmp[1]["Content-Type"]=tmp[1]["Content-Type"] + "; charset=utf-8" tmp[1]["Content-Type"]=tmp[1]["Content-Type"] + "; charset=utf-8"
end
return tmp return tmp
end end