Skip to content

Commit

Permalink
fix: remove momoryzation from set the CONTENT_LENGTH
Browse files Browse the repository at this point in the history
  • Loading branch information
aristotelesbr committed Feb 8, 2024
1 parent 72b9a19 commit 5745033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lennarb/response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5745033

Please sign in to comment.