use std.mem.eql in XHR header checking

This commit is contained in:
Muki Kiboigo authored and Karl Seguin committed 2026-09-29 07:49:07 +08:00
1 parent f786c18055
commit 1dfd8ef89e
1 file changed
+1 -1
+1 -1
View File
@@ -406,7 +406,7 @@ pub fn send(self: *XMLHttpRequest, body_: ?BodyInit, exec_: *const Execution) !v
self._response_len = resp.body.items.len;
for (resp.headers) |hdr| {
if (std.ascii.eqlIgnoreCase(hdr.name, "content-type")) {
if (std.mem.eql(u8, hdr.name, "content-type")) {
self.applyContentType(hdr.value) catch |e| {
log.info(.http, "invalid content type", .{
.content_Type = hdr.value,