Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

headers need to be strings

  • Loading branch information...
commit 94e4002290be2909e45c6951d8bbd294517357af 1 parent 47b4df5
@ddollar authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/rack/maintenance.rb
View
2  lib/rack/maintenance.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.