about summary refs log tree commit homepage
path: root/test/test_output_buffering.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_output_buffering.rb')
-rw-r--r--test/test_output_buffering.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_output_buffering.rb b/test/test_output_buffering.rb
index 7f75702..8134b53 100644
--- a/test/test_output_buffering.rb
+++ b/test/test_output_buffering.rb
@@ -1,5 +1,6 @@
 # Copyright (C) 2013-2015 all contributors <yahns-public@yhbt.net>
 # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
+# frozen_string_literal: true
 require_relative 'server_helper'
 require 'digest/md5'
 require 'rack/file'
@@ -88,7 +89,7 @@ class TestOutputBuffering < Testcase
 
   def md5sum(c)
     dig = Digest::MD5.new
-    buf = ""
+    buf = ''.dup
     nr = 0
     while c.read(8192, buf)
       dig << buf