stream_input: favor String#clear over String#replace
commit535a627cbc0f10b549bc536c52323bc00af5944f
authorEric Wong <e@80x24.org>
Sat, 22 Aug 2015 04:28:16 +0000 (22 04:28 +0000)
committerEric Wong <e@80x24.org>
Sat, 22 Aug 2015 04:28:16 +0000 (22 04:28 +0000)
treed554a1039ad06ed084fb655f757d55b8ff23527a
parent4e7cab9f1727eccd90780d1ceb14948e0ace36a6
stream_input: favor String#clear over String#replace

We no longer need Ruby 1.8 compatibility, so use String#clear
to reduce argument passing and code size.
lib/unicorn/stream_input.rb