We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
bytesize
1 parent 55ef29f commit dfe4d62Copy full SHA for dfe4d62
lib/debug/server_dap.rb
@@ -87,7 +87,7 @@ def send **kw
87
kw[:seq] = @seq += 1
88
str = JSON.dump(kw)
89
show_protocol '<', str
90
- @sock.write "Content-Length: #{str.size}\r\n\r\n#{str}"
+ @sock.write "Content-Length: #{str.bytesize}\r\n\r\n#{str}"
91
end
92
93
def send_response req, success: true, **kw
0 commit comments