Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Jack_File.serve = function(path, contents) {
var body = contents,
size = contents.getLength();
return [200, {
//"Last-Modified" : File.mtime(path).httpdate(),
"Content-Type" : Mime.mimeType(File.extname(path), "text/plain"),
"Content-Length" : String(size)
}, body];
}