mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-10-08 20:32:00 -04:00
use std.mem.eql in XHR header checking
This commit is contained in:
1 parent
f786c18055
commit
1dfd8ef89e
1 file changed
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user