Permalink
Browse files

misc

  • Loading branch information...
tj committed Mar 14, 2012
1 parent 1baabf7 commit 45d78f243f9b7377654093aee95df4c320de4598
Showing with 2 additions and 2 deletions.
  1. +1 −1 examples/http/app.js
  2. +1 −1 examples/http/server.js
View
@@ -7,7 +7,7 @@ var zmq = require('../../')
var server = http.createServer(function(req, res){
res.writeHead(200, req.headers);
req.on('data', function(chunk){
- res.write(chunk.toString().toUpperCase());
+ res.write(chunk);
}).on('end', function(){
res.end();
});
View
@@ -30,7 +30,7 @@ http.createServer(function(req, res){
});
}).listen(3000);
-sock.on('message', function(envelope, id, type, data){
+sock.on('message', function(id, type, data){
var id = id.toString()
, type = type.toString()
, res = requests[id];

0 comments on commit 45d78f2

Please sign in to comment.