Skip to content

Commit

Permalink
Merge branch 'master' of github.com:LearnBoost/socket.io
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Dec 13, 2012
2 parents 8daa713 + fcd4f6a commit 3af1ad9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,15 +511,15 @@ Manager.prototype.onClientMessage = function (id, packet) {
* @api private
*/

Manager.prototype.onClientDisconnect = function (id, reason) {
Manager.prototype.onClientDisconnect = function (id, reason, local) {
for (var name in this.namespaces) {
if (this.namespaces.hasOwnProperty(name)) {
this.namespaces[name].handleDisconnect(id, reason, typeof this.roomClients[id] !== 'undefined' &&
typeof this.roomClients[id][name] !== 'undefined');
}
}

this.onDisconnect(id);
this.onDisconnect(id, local);
};

/**
Expand Down Expand Up @@ -901,7 +901,7 @@ Manager.prototype.authorize = function (data, fn) {
var self = this;

this.get('authorization').call(this, data, function (err, authorized) {
self.log.debug('client ' + authorized ? 'authorized' : 'unauthorized');
self.log.debug('client ' + (authorized ? 'authorized' : 'unauthorized'));
fn(err, authorized);
});
} else {
Expand Down
2 changes: 1 addition & 1 deletion lib/transports/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ HTTPTransport.prototype.handleRequest = function (req) {
var buffer = ''
, res = req.res
, origin = req.headers.origin
, headers = { 'Content-Length': 1, 'Content-Type': 'text/plain; charset=UTF-8' }
, headers = { 'Content-Length': 1, 'Content-Type': 'application/javascript; charset=UTF-8' }
, self = this;

req.on('data', function (data) {
Expand Down

0 comments on commit 3af1ad9

Please sign in to comment.