nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nitcatalog: refactor tags collection
[nit.git]
/
lib
/
nitcorn
/
http_response.nit
diff --git
a/lib/nitcorn/http_response.nit
b/lib/nitcorn/http_response.nit
index
ef87adb
..
523c051
100644
(file)
--- a/
lib/nitcorn/http_response.nit
+++ b/
lib/nitcorn/http_response.nit
@@
-42,7
+42,7
@@
class HttpResponse
do
# Set the content length if not already set
if not header.keys.has("Content-Length") then
- header["Content-Length"] = body.length.to_s
+ header["Content-Length"] = body.bytelen.to_s
end
# Set server ID