Permalink
Browse files

cookie message must not be empty

SockJS seems to ignore empty messages
  • Loading branch information...
1 parent 2c59943 commit ba8a5daa71a8cc232887486cbac17f2af859db42 @minrk committed Oct 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/frontend/html/notebook/static/js/kernel.js
@@ -130,7 +130,7 @@ var IPython = (function (IPython) {
this.shell_channel = new this.WebSocket(ws_url + "/shell/websocket");
this.iopub_channel = new this.WebSocket(ws_url + "/iopub/websocket");
send_cookie = function(){
- this.send(document.cookie);
+ this.send(document.cookie || ' ');
};
var already_called_onclose = false; // only alert once
ws_closed_early = function(evt){

0 comments on commit ba8a5da

Please sign in to comment.