Skip to content

Commit

Permalink
Made idea-depo compatible with node v0.1.96
Browse files Browse the repository at this point in the history
  • Loading branch information
xavi- committed May 24, 2010
1 parent 22714db commit 642a5f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.js
Expand Up @@ -12,7 +12,7 @@ var srv = require("./libraries/xavlib/simple-router");
var sendChannel = (function() {
function bindAndSend(res, data, context) {
bind.to(data, context, function(data) {
res.sendHeader(200, { "Conent-Length": data.length,
res.writeHead(200, { "Conent-Length": data.length,
"Content-Type": "text/html" });
res.end(data, "utf8");
});
Expand Down Expand Up @@ -73,7 +73,7 @@ chn.onCreate(function(id, channel) {

if(err) { text = ""; }

channel.text = text;
channel.text = text.toString();

channel.onload.trigger(text);

Expand Down

0 comments on commit 642a5f2

Please sign in to comment.