mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
ResponseHeader.get should return mutable slice
This commit is contained in:
@@ -1439,7 +1439,7 @@ pub const ResponseHeader = struct {
|
||||
|
||||
// Stored header has already been lower-cased
|
||||
// `name` parameter should be passed in lower-cased
|
||||
pub fn get(self: *const ResponseHeader, name: []const u8) ?[]const u8 {
|
||||
pub fn get(self: *const ResponseHeader, name: []const u8) ?[]u8 {
|
||||
for (self.headers.items) |h| {
|
||||
if (std.mem.eql(u8, name, h.name)) {
|
||||
return h.value;
|
||||
|
||||
Reference in New Issue
Block a user