mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-06-11 09:35:59 -04:00
http: add default write callback to prevent stdout pollution
This commit is contained in:
@@ -421,6 +421,9 @@ pub const Connection = struct {
|
||||
|
||||
// try libcurl.curl_easy_setopt(easy, .debug_function, debugCallback);
|
||||
}
|
||||
|
||||
// default write callback to prevent libcurl from writing to stdout
|
||||
try self.setWriteCallback(discardBody);
|
||||
}
|
||||
|
||||
fn discardBody(_: [*]const u8, count: usize, len: usize, _: ?*anyopaque) usize {
|
||||
|
||||
Reference in New Issue
Block a user