mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
Eliminates duplication in the creation of HTTP headers
This commit is contained in:
@@ -32,15 +32,12 @@ pub fn main() !void {
|
||||
wg.wait();
|
||||
}
|
||||
lp.log.opts.level = .warn;
|
||||
const config = lp.Config{
|
||||
.mode = .{ .serve = .{
|
||||
.common = .{
|
||||
.tls_verify_host = false,
|
||||
.user_agent_suffix = "internal-tester",
|
||||
},
|
||||
} },
|
||||
.exec_name = "legacy-test",
|
||||
};
|
||||
const config = try lp.Config.init(allocator, "legacy-test", .{ .serve = .{
|
||||
.common = .{
|
||||
.tls_verify_host = false,
|
||||
.user_agent_suffix = "internal-tester",
|
||||
},
|
||||
} });
|
||||
var app = try lp.App.init(allocator, &config);
|
||||
defer app.deinit();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user