http: handle auth challenge for non-proxy auth

This commit is contained in:
Pierre Tachoire
2026-03-09 19:23:36 +01:00
parent 9172e16e80
commit 37c34351ee
3 changed files with 11 additions and 1 deletions

View File

@@ -148,6 +148,7 @@ pub const CurlOption = enum(c.CURLoption) {
cookie = c.CURLOPT_COOKIE,
private = c.CURLOPT_PRIVATE,
proxy_user_pwd = c.CURLOPT_PROXYUSERPWD,
user_pwd = c.CURLOPT_USERPWD,
header_data = c.CURLOPT_HEADERDATA,
header_function = c.CURLOPT_HEADERFUNCTION,
write_data = c.CURLOPT_WRITEDATA,
@@ -512,6 +513,7 @@ pub fn curl_easy_setopt(easy: *Curl, comptime option: CurlOption, value: anytype
.accept_encoding,
.custom_request,
.cookie,
.user_pwd,
.proxy_user_pwd,
.copy_post_fields,
=> blk: {