mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-10-01 17:05:02 -04:00
http: add default write callback to prevent stdout pollution
This commit is contained in:
1 parent
afbad07f0f
commit
d19e62ec3c
1 file changed
+3
@@ -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