1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-20 15:14:08 +00:00

fixed setContentTypeFromFilename consts

This commit is contained in:
Rene Schallner 2024-01-09 12:02:31 +01:00
parent 737691581a
commit baf58b1666

View file

@ -223,8 +223,8 @@ pub const SimpleRequest = struct {
const ext = std.fs.path.extension(filename);
if (ext.len > 1) {
var e = ext[1..];
var obj = fio.http_mimetype_find(@constCast(e.ptr), e.len);
const e = ext[1..];
const obj = fio.http_mimetype_find(@constCast(e.ptr), e.len);
if (util.fio2str(obj)) |mime_str| {
try self.setHeader("content-type", mime_str);