mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
prefer hostname instead of host in forRequest
This commit is contained in:
@@ -81,9 +81,10 @@ pub const Jar = struct {
|
||||
prefix: ?[]const u8 = null,
|
||||
};
|
||||
|
||||
// FIXME: Invalid behavior.
|
||||
pub fn forRequest(self: *Jar, target_url: URL, writer: anytype, opts: LookupOpts) !void {
|
||||
const target = PreparedUri{
|
||||
.host = target_url.host(),
|
||||
.host = target_url.getHostname(),
|
||||
.path = target_url.getPath(),
|
||||
.secure = target_url.isSecure(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user