summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-01-07 17:18:19 -0800
committerAndrew <andrewarnott@gmail.com>2009-01-07 17:18:19 -0800
commitd1500144c236d5080266528aedb9ee40322db09c (patch)
tree9d3b24eac3a3fc174e4e3bc1f710ce3420d5cde9 /src
parentd926302afa129bf69b81cb2ef7bd71044a7347fb (diff)
downloadDotNetOpenAuth-d1500144c236d5080266528aedb9ee40322db09c.zip
DotNetOpenAuth-d1500144c236d5080266528aedb9ee40322db09c.tar.gz
DotNetOpenAuth-d1500144c236d5080266528aedb9ee40322db09c.tar.bz2
XRDS documents are now pulled with an Accept-Type header for XRDS documents.
Some XRDS documents only come down when the Accept-Type header is set in this way. Fixes part of the issue discovered from Google Code Issue 182. Port of DNOI 7fb2d79d903590755ef1005ed28c525a8e1e4f73
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/Yadis/Yadis.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth/Yadis/Yadis.cs b/src/DotNetOpenAuth/Yadis/Yadis.cs
index 455c653..f25ec94 100644
--- a/src/DotNetOpenAuth/Yadis/Yadis.cs
+++ b/src/DotNetOpenAuth/Yadis/Yadis.cs
@@ -78,7 +78,7 @@ namespace DotNetOpenAuth.Yadis {
}
if (url != null) {
if (!requireSsl || string.Equals(url.Scheme, Uri.UriSchemeHttps, StringComparison.OrdinalIgnoreCase)) {
- response2 = Request(requestHandler, url, requireSsl);
+ response2 = Request(requestHandler, url, requireSsl, ContentTypes.Xrds);
response2.CacheNetworkStreamAndClose();
if (response2.Status != System.Net.HttpStatusCode.OK) {
return null;