From: ko1@... Date: 2019-07-30T03:53:36+00:00 Subject: [ruby-core:94012] [Ruby master Bug#10715] WEBrick::HTTPResponse#to_s calls send_response(), and make debugging quite difficult. Issue #10715 has been updated by ko1 (Koichi Sasada). Status changed from Open to Closed should we continue on github issue? ---------------------------------------- Bug #10715: WEBrick::HTTPResponse#to_s calls send_response(), and make debugging quite difficult. https://bugs.ruby-lang.org/issues/10715#change-80236 * Author: yoshiokatsuneo (Tsuneo Yoshioka) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: trunk * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- WEBrick::HTTPResponse#to_s calls send_response(), and this makes debugging very difficult. If I run webrick on debugger or just do "print" debug, and show status of the object in some point, then debugger or "print" may calls "to_s" and go to weird status (like setting content-length to zero and never changes). I suggest to remove "to_s" method from WEBrick::HTTPResponse, and just directly call "send_response" instead of "to_s" when needed. -- https://bugs.ruby-lang.org/ Unsubscribe: