Update v1.0.6

This commit is contained in:
Bhanu Slathia
2016-02-16 23:22:09 +05:30
parent 62d04a0372
commit c710c20b9e
7620 changed files with 244752 additions and 1070312 deletions

View File

@@ -0,0 +1,29 @@
/*jshint node:true */
// Module exports
exports = module.exports = setup;
// Module dependencies
var http = require("http");
var send = require("send");
var root = __dirname;
var swf = "/ZeroClipboard.swf";
function setup() {
return http.createServer(onReq);
}
function onReq(req, res) {
send(req, swf)
.root(root)
.on("error", onError)
.pipe(res);
}
function onError(err) {
res.statusCode = err.status || 500;
res.end(err.message);
}