File tree 4 files changed +8
-3
lines changed
4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
2
+ 0.6.16 / 2011-03-04
3
+ ===================
4
+
5
+ * Fixed cross domain xhr-polling in Safari [ tifroz]
6
+
2
7
0.6.15 / 2011-02-23
3
8
===================
4
9
Original file line number Diff line number Diff line change @@ -23,4 +23,4 @@ exports.Listener = require('./listener');
23
23
* Version
24
24
*/
25
25
26
- exports . version = '0.6.15 ' ;
26
+ exports . version = '0.6.16 ' ;
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ Polling.prototype._write = function(message){
69
69
var headers = { 'Content-Type' : 'text/plain; charset=UTF-8' , 'Content-Length' : Buffer . byteLength ( message ) } ;
70
70
// https://developer.mozilla.org/En/HTTP_Access_Control
71
71
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 ) ;
73
73
if ( this . request . headers . cookie ) headers [ 'Access-Control-Allow-Credentials' ] = 'true' ;
74
74
}
75
75
this . response . writeHead ( 200 , headers ) ;
Original file line number Diff line number Diff line change 1
1
{ "name" : " socket.io"
2
2
, "description" : " The cross-browser WebSocket"
3
- , "version" : " 0.6.15 "
3
+ , "version" : " 0.6.16 "
4
4
, "author" : " LearnBoost"
5
5
, "licenses" :
6
6
[ { "type" : " MIT"
You can’t perform that action at this time.
0 commit comments