mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 22:53:28 +00:00
Merge pull request #985 from lightpanda-io/fulfill-content-type-len
http: set content_type len on fulfill request
This commit is contained in:
@@ -1031,6 +1031,7 @@ pub const Transfer = struct {
|
||||
if (std.ascii.eqlIgnoreCase(hdr.name, "content-type")) {
|
||||
const len = @min(hdr.value.len, ResponseHeader.MAX_CONTENT_TYPE_LEN);
|
||||
@memcpy(transfer.response_header.?._content_type[0..len], hdr.value[0..len]);
|
||||
transfer.response_header.?._content_type_len = len;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user