Skip to content
Browse files

fix typo in xdomain access control

  • Loading branch information...
1 parent 66a0824 commit 7017babb68a4dab60663241cbf9a66dbd185be02 @xantus committed Jul 16, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/socket.io/transports/xhr-polling.js
View
4 lib/socket.io/transports/xhr-polling.js
@@ -43,7 +43,7 @@ exports['xhr-polling'] = Client.extend({
var headers = {'Content-Type': 'text/plain', 'Content-Length': message.length};
// https://developer.mozilla.org/En/HTTP_Access_Control
if (this.request.headers.origin && this._verifyOrigin(this.request.headers.origin)) {
- headers['Access-Control-Allow-Origin'] = this.request.headersorigin;
+ headers['Access-Control-Allow-Origin'] = this.request.headers.origin;
if (this.request.headers.cookie) {
headers['Access-Control-Allow-Credentials'] = 'true';
}
@@ -54,4 +54,4 @@ exports['xhr-polling'] = Client.extend({
this._onClose();
}
-});
+});

0 comments on commit 7017bab

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