summaryrefslogtreecommitdiffstats
path: root/samples/DotNetOpenAuth.ApplicationBlock
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-01-12 21:39:26 -0800
committerAndrew <andrewarnott@gmail.com>2009-01-12 21:39:26 -0800
commit3b27d8a84a1f1745fcdf8191dfb6ed276bc7fbff (patch)
tree0e97e6f3b87840406dd81c15538bc6d550742e3a /samples/DotNetOpenAuth.ApplicationBlock
parent5a8a7e76d9f8d57e295c83905a2e5c5ef2348077 (diff)
downloadDotNetOpenAuth-3b27d8a84a1f1745fcdf8191dfb6ed276bc7fbff.zip
DotNetOpenAuth-3b27d8a84a1f1745fcdf8191dfb6ed276bc7fbff.tar.gz
DotNetOpenAuth-3b27d8a84a1f1745fcdf8191dfb6ed276bc7fbff.tar.bz2
Fixed the DirectWebResponse bug that broke the OAuth sample.
Diffstat (limited to 'samples/DotNetOpenAuth.ApplicationBlock')
-rw-r--r--samples/DotNetOpenAuth.ApplicationBlock/GoogleConsumer.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/samples/DotNetOpenAuth.ApplicationBlock/GoogleConsumer.cs b/samples/DotNetOpenAuth.ApplicationBlock/GoogleConsumer.cs
index f08b9ba..81589c7 100644
--- a/samples/DotNetOpenAuth.ApplicationBlock/GoogleConsumer.cs
+++ b/samples/DotNetOpenAuth.ApplicationBlock/GoogleConsumer.cs
@@ -129,7 +129,8 @@ namespace DotNetOpenAuth.ApplicationBlock {
}
var response = consumer.PrepareAuthorizedRequestAndSend(GetContactsEndpoint, accessToken);
- XDocument result = XDocument.Parse(response.Body);
+ string body = response.GetResponseReader().ReadToEnd();
+ XDocument result = XDocument.Parse(body);
return result;
}