ctype = "application/javascript"; | ctype = "application/javascript"; | ||||
else if (path.endsWith(".css")) | else if (path.endsWith(".css")) | ||||
ctype = "text/css"; | ctype = "text/css"; | ||||
else if (path.endsWith(".svg")) | |||||
ctype = "image/svg+xml"; | |||||
if (ctype) | if (ctype) | ||||
res.writeHead(200, { "Content-Type": ctype }); | res.writeHead(200, { "Content-Type": ctype }); |