Skip to content

Commit

Permalink
Added accept header to OpenID requests. Fixes havard#82.
Browse files Browse the repository at this point in the history
  • Loading branch information
havard committed Jun 22, 2012
1 parent d529469 commit 670e896
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openid.js
Expand Up @@ -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
};

Expand Down

0 comments on commit 670e896

Please sign in to comment.