Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change subir instead upload #35

Open
thedarsideofit opened this issue Jul 15, 2013 · 0 comments
Open

Change subir instead upload #35

thedarsideofit opened this issue Jul 15, 2013 · 0 comments

Comments

@thedarsideofit
Copy link

Hi guys i find a minor detail in
var exec = require("child_process").exec;

function iniciar(response) {
console.log("Manipulador de petición 'iniciar' fue llamado.");

exec("ls -lah", function (error, stdout, stderr) {
response.writeHead(200, {"Content-Type": "text/html"});
response.write(stdout);
response.end();
});
}
//The name of the function its wrong and throw an exception change subir instead
function upload(response) {
console.log("Manipulador de petición 'subir' fue llamado.");
response.writeHead(200, {"Content-Type": "text/html"});
response.write("Hola Subir");
response.end();
}

exports.iniciar = iniciar;
exports.subir = subir;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant