mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 23:23: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
|
// Stored header has already been lower-cased
|
||||||
// `name` parameter should be passed in 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| {
|
for (self.headers.items) |h| {
|
||||||
if (std.mem.eql(u8, name, h.name)) {
|
if (std.mem.eql(u8, name, h.name)) {
|
||||||
return h.value;
|
return h.value;
|
||||||
|
|||||||
Reference in New Issue
Block a user