summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStormwind <stormwind@stormwinds-page.de>2012-11-24 16:17:14 +0100
committerStormwind <stormwind@stormwinds-page.de>2012-11-24 16:17:14 +0100
commit7213e3e8f6cf1237ce86a80e26391e98656766a1 (patch)
tree0b75d105493f196396f7ab41b5f0f8b43ed227c4 /lib
parent13eae5cfa5efd6af6e47ea03a58fbb79399a3308 (diff)
Content-Length must be a String
Diffstat (limited to 'lib')
-rw-r--r--lib/zero/response.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zero/response.rb b/lib/zero/response.rb
index 373a65b..24c1aaf 100644
--- a/lib/zero/response.rb
+++ b/lib/zero/response.rb
@@ -55,7 +55,7 @@ module Zero
# Also creates one, if it does not exists
#
def content_length
- self.header['Content-Length'] = body.join.bytesize
+ self.header['Content-Length'] = body.join.bytesize.to_s
end
# Sets the content type header to the given value