Permalink
Browse files

Added accept header to OpenID requests. Fixes #82.

  • Loading branch information...
havard committed Jun 22, 2012
1 parent d529469 commit 670e896d39e68fc8b2e3e2fc2a64327907c569c1
Showing with 1 addition and 0 deletions.
  1. +1 −0 openid.js
View
@@ -174,6 +174,7 @@ var _get = function(getUrl, params, callback, redirects)
host: getUrl.hostname,
port: _isDef(getUrl.port) ? parseInt(getUrl.port, 10) :
(getUrl.protocol == 'https:' ? 443 : 80),
+ headers: { 'Accept' : 'application/xrds+xml,text/html,text/plain,*/*' },
path: path
};

0 comments on commit 670e896

Please sign in to comment.