Skip to content

Commit 4771f92

Browse files
committed
pre-maturely avoid Ruby frozen string literals coming at us ... ''.dup meh!
1 parent 2d8a988 commit 4771f92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/ruby/jruby/rack/response.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def getHeaders
8181
# @return [String]
8282
# @see #Java::OrgJrubyRack::RackResponse#getBody
8383
def getBody
84-
body = ""
84+
body = ''.dup
8585
@body.each { |part| body << part }
8686
body
8787
ensure

0 commit comments

Comments
 (0)