diff --git a/lib/lennarb/response.rb b/lib/lennarb/response.rb index b9c4a54..dfcec38 100644 --- a/lib/lennarb/response.rb +++ b/lib/lennarb/response.rb @@ -80,7 +80,7 @@ def []=(key, value) def write(str) str = str.to_s @length += str.bytesize - @headers[CONTENT_LENGTH] ||= @length.to_s + @headers[CONTENT_LENGTH] = @length.to_s @body << str end