http_request: freeze constant strings passed IO#write
commite06b699683738f22fcbec1a4ad42d1a4095ec396
authorEric Wong <e@80x24.org>
Mon, 13 Feb 2017 17:31:29 +0000 (13 17:31 +0000)
committerEric Wong <e@80x24.org>
Mon, 13 Feb 2017 20:59:03 +0000 (13 20:59 +0000)
tree06ce2b0466ae02233dcbed1ba87bb4be8e77d02f
parent69fd4f9bbff3708166fbf70163fa6e192dde1497
http_request: freeze constant strings passed IO#write

This ensures we won't have duplicate objects in Ruby 2.0-2.4.
For Ruby 2.5.0dev+, this avoids any duplicate cleanup
introduced as of r57471: https://bugs.ruby-lang.org/issues/13085
lib/unicorn/http_request.rb