Skip to content

Commit cef5fb3

Browse files
committed
Merge branch 'master' of git://github.com/LearnBoost/Socket.IO-node
2 parents 648b1d0 + cfbae2a commit cef5fb3

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

History.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
0.6.16 / 2011-03-04
3+
===================
4+
5+
* Fixed cross domain xhr-polling in Safari [tifroz]
6+
27
0.6.15 / 2011-02-23
38
===================
49

lib/socket.io/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ exports.Listener = require('./listener');
2323
* Version
2424
*/
2525

26-
exports.version = '0.6.15';
26+
exports.version = '0.6.16';

lib/socket.io/transports/xhr-polling.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Polling.prototype._write = function(message){
6969
var headers = {'Content-Type': 'text/plain; charset=UTF-8', 'Content-Length': Buffer.byteLength(message)};
7070
// https://developer.mozilla.org/En/HTTP_Access_Control
7171
if (this.request.headers.origin && this._verifyOrigin(this.request.headers.origin)){
72-
headers['Access-Control-Allow-Origin'] = this.request.headers.origin;
72+
headers['Access-Control-Allow-Origin'] = (this.request.headers.origin === 'null' ? '*' : this.request.headers.origin);
7373
if (this.request.headers.cookie) headers['Access-Control-Allow-Credentials'] = 'true';
7474
}
7575
this.response.writeHead(200, headers);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{ "name" : "socket.io"
22
, "description" : "The cross-browser WebSocket"
3-
, "version" : "0.6.15"
3+
, "version" : "0.6.16"
44
, "author" : "LearnBoost"
55
, "licenses" :
66
[ { "type" : "MIT"

0 commit comments

Comments
 (0)