mirror of
https://github.com/zigzap/zap.git
synced 2025-10-20 23:24:09 +00:00
fixed setContentTypeFromFilename consts
This commit is contained in:
parent
737691581a
commit
baf58b1666
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue