test/test_expect_100.rb in yahns-1.11.0 vs test/test_expect_100.rb in yahns-1.12.0

- old
+ new

@@ -1,7 +1,8 @@ -# Copyright (C) 2013-2015 all contributors <yahns-public@yhbt.net> -# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) +# Copyright (C) 2013-2016 all contributors <yahns-public@yhbt.net> +# License: GPL-3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt) +# frozen_string_literal: true require_relative 'server_helper' class TestExpect100 < Testcase ENV["N"].to_i > 1 and parallelize_me! include ServerHelper @@ -159,11 +160,11 @@ $_tw_block_on = block_on Yahns::HttpClient.__send__(:include, TrywriteBlocked) end c = get_tcp_client(host, port) if body.size > 0 - r = "PUT / HTTP/1.0\r\nExpect: 100-continue\r\n" - r << "Content-Length: #{body.size}\r\n\r\n#{body}" + r = "PUT / HTTP/1.0\r\nExpect: 100-continue\r\n" \ + "Content-Length: #{body.size}\r\n\r\n#{body}" else r = "PUT / HTTP/1.0\r\nExpect: 100-continue\r\n\r\n" end c.write(r) assert c.wait(10), "timed out"