Permalink
Browse files

headers need to be strings

  • Loading branch information...
1 parent 47b4df5 commit 94e4002290be2909e45c6951d8bbd294517357af @ddollar committed Aug 30, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/maintenance.rb
View
@@ -14,7 +14,7 @@ def initialize(app, options={})
def call(env)
if maintenance?
data = File.read(file)
- [ 503, { 'Content-Type' => 'text/html', 'Content-Length' => data.length }, [data] ]
+ [ 503, { 'Content-Type' => 'text/html', 'Content-Length' => data.length.to_s }, [data] ]
else
app.call(env)
end

0 comments on commit 94e4002

Please sign in to comment.