add assert to SyncRequest headerCallback

This commit is contained in:
Muki Kiboigo committed 2026-04-28 07:01:42 -07:00
1 parent 1370f6805b
commit 0ecf981f7e
1 file changed
+1
+1
View File
@@ -425,6 +425,7 @@ const SyncContext = struct {
fn headerCallback(response: Response) anyerror!bool {
const self: *SyncContext = @ptrCast(@alignCast(response.ctx));
lp.assert(response.status() != null, "HttpClient.SyncRequest.headerCallback", .{ .value = response.status() });
self.status = response.status().?;
if (response.contentLength()) |cl| {
try self.body.ensureTotalCapacity(self.allocator, cl);