mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-06-11 01:25:53 -04:00
add assert to SyncRequest headerCallback
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user