georgi-kontrol 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/kontrol/application.rb +1 -1
- metadata +1 -1
data/lib/kontrol/application.rb
CHANGED
@@ -121,7 +121,7 @@ module Kontrol
|
|
121
121
|
response.status = status if response.status.nil?
|
122
122
|
response.header.merge!(header)
|
123
123
|
response.body = body if response.body.empty?
|
124
|
-
response['Content-Length'] = response.body.size.to_s
|
124
|
+
response['Content-Length'] = response.body.size.to_s if response.status == 200
|
125
125
|
response['Content-Type'] = guess_content_type if response['Content-Type'].empty?
|
126
126
|
|
127
127
|
response.finish
|