aboutsummaryrefslogtreecommitdiff
path: root/misctools/fetch.zig
diff options
context:
space:
mode:
Diffstat (limited to 'misctools/fetch.zig')
-rw-r--r--misctools/fetch.zig12
1 files changed, 11 insertions, 1 deletions
diff --git a/misctools/fetch.zig b/misctools/fetch.zig
index bb9e09a2a..347ce8cde 100644
--- a/misctools/fetch.zig
+++ b/misctools/fetch.zig
@@ -187,7 +187,17 @@ pub fn main() anyerror!void {
var ctx = try default_allocator.create(HTTP.HTTPChannelContext);
ctx.* = .{
.channel = channel,
- .http = try HTTP.AsyncHTTP.init(default_allocator, args.method, args.url, args.headers, args.headers_buf, response_body_string, args.body, 0, HTTP.FetchRedirect.follow,),
+ .http = try HTTP.AsyncHTTP.init(
+ default_allocator,
+ args.method,
+ args.url,
+ args.headers,
+ args.headers_buf,
+ response_body_string,
+ args.body,
+ 0,
+ HTTP.FetchRedirect.follow,
+ ),
};
ctx.http.callback = HTTP.HTTPChannelContext.callback;
var batch = HTTPThread.Batch{};