Skip to content
Browse files

socket message now always have headers dict

  • Loading branch information...
1 parent 6bc3b22 commit f03e9ff1e50073e7a1fb579c30f932b6e606a7d2 @dimsmol committed Mar 14, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/mechanics/socket/transport.js
View
1 lib/mechanics/socket/transport.js
@@ -34,6 +34,7 @@ Transport.prototype.decode = function(message) {
};
Transport.prototype.encode = function(headers, data) {
+ headers = headers || {};
var body;
if (data === undefined) {

0 comments on commit f03e9ff

Please sign in to comment.
Something went wrong with that request. Please try again.