Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

s/posix/fs/g

  • Loading branch information...
commit cb7ea87ca1c052691abe5b7f80e55255e978c12b 1 parent f28c2bb
@smith smith authored committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 fu.js
View
8 fu.js
@@ -1,6 +1,6 @@
var http = require('http'),
sys = require('sys'),
- posix = require('posix')
+ fs = require('fs')
;
DEBUG = true;
@@ -73,7 +73,7 @@ fu.staticHandler = function (filename) {
sys.puts("loading " + filename + "...");
var path = __filename.match(/(.*\/)/)[0];
- var promise = posix.cat(path + filename, encoding);
+ var promise = fs.cat(path + filename, encoding);
promise.addCallback(function (data) {
body = data;
@@ -82,7 +82,7 @@ fu.staticHandler = function (filename) {
];
if (!DEBUG)
headers.push(["Cache-Control", "public"]);
-
+
sys.puts("static file " + filename + " loaded");
callback();
});
@@ -107,7 +107,7 @@ fu.mime = {
lookupExtension : function(ext, fallback) {
return fu.mime.TYPES[ext.toLowerCase()] || fallback || 'application/octet-stream';
},
-
+
// List of most common mime-types, stolen from Rack.
TYPES : { ".3gp" : "video/3gpp"
, ".a" : "application/octet-stream"
Please sign in to comment.
Something went wrong with that request. Please try again.