1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-20 23:24:09 +00:00

fixed test's http client for latest zig std.http

This commit is contained in:
Rene Schallner 2023-04-28 21:13:08 +02:00
parent 4be0d13bbf
commit a278842d78

View file

@ -147,7 +147,7 @@ fn makeRequest(a: std.mem.Allocator, url: []const u8, auth: ?ClientAuthReqHeader
defer req.deinit();
try req.start();
try req.do();
try req.wait();
// var br = std.io.bufferedReaderSize(std.crypto.tls.max_ciphertext_record_len, req.reader());
// var buffer: [1024]u8 = undefined;
// we know we won't receive a lot
@ -619,6 +619,4 @@ test "BasicAuth UserPass authenticateRequest test-unauthorized" {
});
try std.testing.expectEqualStrings("UNAUTHORIZED", received_response);
std.debug.print("\n\nFINISHED!", .{});
}