mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
strings: rename Builder.write_b() to Builder.write_byte(), add deprecation (#13313)
This commit is contained in:
@ -144,9 +144,9 @@ fn (mut c Client) send_auth() ? {
|
||||
return
|
||||
}
|
||||
mut sb := strings.new_builder(100)
|
||||
sb.write_b(0)
|
||||
sb.write_byte(0)
|
||||
sb.write_string(c.username)
|
||||
sb.write_b(0)
|
||||
sb.write_byte(0)
|
||||
sb.write_string(c.password)
|
||||
a := sb.str()
|
||||
auth := 'AUTH PLAIN ${base64.encode_str(a)}\r\n'
|
||||
|
Reference in New Issue
Block a user