config.ru in jellyfish-1.3.1 vs config.ru in jellyfish-1.4.0
- old
+ new
@@ -5,11 +5,11 @@
class Jelly
include Jellyfish
controller_include Module.new{
def dispatch
- headers_merge 'Content-Type' => 'application/json; charset=utf-8',
+ headers_merge 'content-type' => 'application/json; charset=utf-8',
'Access-Control-Allow-Origin' => '*'
super
end
def render obj
@@ -57,10 +57,9 @@
end
end
App = Jellyfish::Builder.app do
use Rack::CommonLogger
- use Rack::Chunked
use Rack::ContentLength
use Rack::Deflater
run Rack::Cascade.new([Rack::File.new('public/index.html'),
Rack::File.new('public'),