about summary refs log tree commit homepage
path: root/test/test_client_max_body_size.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_client_max_body_size.rb')
-rw-r--r--test/test_client_max_body_size.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_client_max_body_size.rb b/test/test_client_max_body_size.rb
index 8be2856..9ea91ad 100644
--- a/test/test_client_max_body_size.rb
+++ b/test/test_client_max_body_size.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'
 
 class TestClientMaxBodySize < Testcase
@@ -11,7 +12,7 @@ class TestClientMaxBodySize < Testcase
 
   DRAINER = lambda do |e|
     input = e["rack.input"]
-    buf = ""
+    buf = ''.dup
     nr = 0
     while rv = input.read(16384, buf)
       nr += rv.size