mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 05:24:40 +01:00
Fix regression: std.http.Client basic authorization sending user:user instead of user:password when passed in URI
This commit is contained in:
parent
b72a02c592
commit
dcddbcaa60
1 changed files with 1 additions and 1 deletions
|
|
@ -1375,7 +1375,7 @@ pub const basic_authorization = struct {
|
|||
var buf: [max_user_len + 1 + max_password_len]u8 = undefined;
|
||||
var w: Writer = .fixed(&buf);
|
||||
const user: Uri.Component = uri.user orelse .empty;
|
||||
const password: Uri.Component = uri.user orelse .empty;
|
||||
const password: Uri.Component = uri.password orelse .empty;
|
||||
user.formatUser(&w) catch unreachable;
|
||||
w.writeByte(':') catch unreachable;
|
||||
password.formatPassword(&w) catch unreachable;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue