aboutsummaryrefslogtreecommitdiff
path: root/src/install
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-09-16 00:53:03 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-09-16 00:53:03 -0700
commit0ce709d96abb48c747f5c93033c9a80fe79ee3bc (patch)
treef535a53c23fd95154b36ceab7c38c8e3a0275c89 /src/install
parentfd808dec524c60ba18c620e27b205828760a6e41 (diff)
downloadbun-0ce709d96abb48c747f5c93033c9a80fe79ee3bc.tar.gz
bun-0ce709d96abb48c747f5c93033c9a80fe79ee3bc.tar.zst
bun-0ce709d96abb48c747f5c93033c9a80fe79ee3bc.zip
Make new HTTP client more stable
Diffstat (limited to 'src/install')
-rw-r--r--src/install/install.zig6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/install/install.zig b/src/install/install.zig
index f0929cd3d..93b3def58 100644
--- a/src/install/install.zig
+++ b/src/install/install.zig
@@ -317,7 +317,6 @@ const NetworkTask = struct {
header_builder.content = GlobalStringBuilder{ .ptr = @intToPtr([*]u8, @ptrToInt(std.mem.span(default_headers_buf).ptr)), .len = default_headers_buf.len, .cap = default_headers_buf.len };
}
- this.request_buffer = try MutableString.init(allocator, 0);
this.response_buffer = try MutableString.init(allocator, 0);
this.allocator = allocator;
this.http = AsyncHTTP.init(
@@ -327,7 +326,7 @@ const NetworkTask = struct {
header_builder.entries,
header_builder.content.ptr.?[0..header_builder.content.len],
&this.response_buffer,
- &this.request_buffer,
+ "",
0,
this.getCompletionCallback(),
);
@@ -376,7 +375,6 @@ const NetworkTask = struct {
this.url_buf = tarball.url;
}
- this.request_buffer = try MutableString.init(allocator, 0);
this.response_buffer = try MutableString.init(allocator, 0);
this.allocator = allocator;
@@ -410,7 +408,7 @@ const NetworkTask = struct {
header_builder.entries,
header_buf,
&this.response_buffer,
- &this.request_buffer,
+ "",
0,
this.getCompletionCallback(),
);