flame 3.5.1 → 3.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flame/dispatcher.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23607516bfdad9950e8dda86e0d603026a852a26
|
4
|
+
data.tar.gz: 35085671967fa0ed58751675b9f23305a0376a56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91dac6fe1127feb439fe69c68bb9de9528a9834a742e807377fe38788fe78b4f2b8e81766225b5a1c675d6abdb7dba38c3d56b1a10fe2d0232e81dbc37b916d6
|
7
|
+
data.tar.gz: ae3703f5353e6896e72a7aa25dc9517de0debc8b0ac51987d918b3d59953bb74ed22b241da0ffd26fb2c2ebc00c32e6c21a2afd8cacad6c4974c3a4111207fc1
|
data/lib/flame/dispatcher.rb
CHANGED
@@ -77,6 +77,7 @@ module Flame
|
|
77
77
|
## Generate default body of error page
|
78
78
|
def default_body
|
79
79
|
return if Rack::Utils::STATUS_WITH_NO_ENTITY_BODY.include?(status)
|
80
|
+
response.headers[Rack::CONTENT_TYPE] = 'text/html'
|
80
81
|
"<h1>#{Rack::Utils::HTTP_STATUS_CODES[status]}</h1>"
|
81
82
|
end
|
82
83
|
|