Skip to content

Commit

Permalink
fixed peer-vnc bin
Browse files Browse the repository at this point in the history
  • Loading branch information
tom zhou committed Mar 30, 2015
1 parent 157150c commit a5b2172
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions index.js
Expand Up @@ -25,6 +25,7 @@ var Debug = 0;
// - options.secmode: ssl, enable ssl/https; acl, enable ssl/https,host-based ACL
// - options.sslmode: srv, only verify server side cert; both, verify both server and client side cert
// - options.auth: http basic-auth as username:password
// - options.upload: file upload directory
var Proxy = module.exports = function(vncs, fn, options){
var self = this;

Expand All @@ -47,8 +48,8 @@ var Proxy = module.exports = function(vncs, fn, options){
}

// check upload
var fileupload = false;

var fileupload = (options && options.upload) || false;
// 1.
// proxy URLs
self.proxyURL = {}; // vURL for VNC server
Expand Down
2 changes: 1 addition & 1 deletion novnc.js
Expand Up @@ -62,7 +62,7 @@ var webServer = module.exports.webServer = function(options) {
Fs.rename(req.files.file.path, newpath, function(err) {
if (err) {
res.writeHeader(501);
res.end('upload failed');
res.end('upload rename failed');
} else {
res.writeHeader(200, {'content-type': 'application/json'});
req.files.file.newname = newname;
Expand Down

0 comments on commit a5b2172

Please sign in to comment.