Merge pull request #1150 from Techatrix/gen-data-files
update config gen according to new `std.http` changes
This commit is contained in:
commit
d4bc2c2349
@ -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