update config gen according to new std.http
changes
This commit is contained in:
parent
825cbd2e07
commit
5fd5ae0677
@ -964,15 +964,16 @@ fn httpGET(allocator: std.mem.Allocator, uri: std.Uri) !Response {
|
||||
defer client.deinit();
|
||||
try client.ca_bundle.rescan(allocator);
|
||||
|
||||
var request = try client.request(uri, .{ .connection = .close }, .{});
|
||||
var request = try client.request(.GET, uri, .{ .allocator = allocator }, .{});
|
||||
defer request.deinit();
|
||||
|
||||
try request.do();
|
||||
try request.start();
|
||||
// try request.finish();
|
||||
try request.do();
|
||||
|
||||
if (request.response.headers.status.class() != .success) {
|
||||
if (request.response.status.class() != .success) {
|
||||
return .{
|
||||
.other = request.response.headers.status,
|
||||
.other = request.response.status,
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user