Merge pull request #985 from lightpanda-io/fulfill-content-type-len

http: set content_type len on fulfill request
This commit is contained in:
Pierre Tachoire
2025-08-28 17:19:23 +02:00
committed by GitHub

View File

@@ -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;
}
}