mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 11:59:00 +00:00
fix(tls/socket/fetch) shutdown fix + ref counted context (#12925)
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
This commit is contained in:
@@ -1981,7 +1981,7 @@ pub const Example = struct {
|
||||
HTTP.FetchRedirect.follow,
|
||||
);
|
||||
async_http.client.progress_node = progress;
|
||||
async_http.client.reject_unauthorized = env_loader.getTLSRejectUnauthorized();
|
||||
async_http.client.flags.reject_unauthorized = env_loader.getTLSRejectUnauthorized();
|
||||
|
||||
const response = try async_http.sendSync(true);
|
||||
|
||||
@@ -2058,7 +2058,7 @@ pub const Example = struct {
|
||||
HTTP.FetchRedirect.follow,
|
||||
);
|
||||
async_http.client.progress_node = progress;
|
||||
async_http.client.reject_unauthorized = env_loader.getTLSRejectUnauthorized();
|
||||
async_http.client.flags.reject_unauthorized = env_loader.getTLSRejectUnauthorized();
|
||||
|
||||
var response = try async_http.sendSync(true);
|
||||
|
||||
@@ -2147,7 +2147,7 @@ pub const Example = struct {
|
||||
HTTP.FetchRedirect.follow,
|
||||
);
|
||||
async_http.client.progress_node = progress;
|
||||
async_http.client.reject_unauthorized = env_loader.getTLSRejectUnauthorized();
|
||||
async_http.client.flags.reject_unauthorized = env_loader.getTLSRejectUnauthorized();
|
||||
|
||||
refresher.maybeRefresh();
|
||||
|
||||
@@ -2188,7 +2188,7 @@ pub const Example = struct {
|
||||
null,
|
||||
HTTP.FetchRedirect.follow,
|
||||
);
|
||||
async_http.client.reject_unauthorized = env_loader.getTLSRejectUnauthorized();
|
||||
async_http.client.flags.reject_unauthorized = env_loader.getTLSRejectUnauthorized();
|
||||
|
||||
if (Output.enable_ansi_colors) {
|
||||
async_http.client.progress_node = progress_node;
|
||||
|
||||
Reference in New Issue
Block a user