mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 12:44:43 +00:00
Eliminates duplication in the creation of HTTP headers
This commit is contained in:
@@ -58,15 +58,12 @@ pub fn main() !void {
|
||||
defer writer.deinit();
|
||||
|
||||
lp.log.opts.level = .warn;
|
||||
const config = lp.Config{
|
||||
.mode = .{ .serve = .{
|
||||
.common = .{
|
||||
.tls_verify_host = false,
|
||||
.user_agent_suffix = "internal-tester",
|
||||
},
|
||||
} },
|
||||
.exec_name = "lightpanda-wpt",
|
||||
};
|
||||
const config = try lp.Config.init(allocator, "lightpanda-wpt", .{ .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