Skip to content

Commit

Permalink
Multipart fix for Node 0.1.98
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Jun 18, 2010
1 parent 06769c4 commit d79de5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/socket.io/transports/xhr-multipart.js
@@ -1,5 +1,5 @@
var Client = require('../client').Client,
qs = require('querystring');
qs = require('querystring');

exports['xhr-multipart'] = Client.extend({

Expand Down Expand Up @@ -34,7 +34,7 @@ exports['xhr-multipart'] = Client.extend({
this.response.shouldKeepAlive = true;
this.response.writeHead(200, headers);
this.response.write("--socketio\n");
this.response.flush();
if ('flush' in this.response) this.response.flush();
this._payload();
this._heartbeatInterval = setInterval(function(){
self._write(String.fromCharCode(6));
Expand Down Expand Up @@ -63,7 +63,7 @@ exports['xhr-multipart'] = Client.extend({
this.response.write("Content-Type: text/plain" + (message.length === 1 && message.charCodeAt(0) === 6 ? "; charset=us-ascii" : "") + "\n\n");
this.response.write(message + "\n");
this.response.write("--socketio\n");
this.response.flush();
if ('flush' in this.response) this.response.flush();
}

});

0 comments on commit d79de5a

Please sign in to comment.