diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-03-10 10:42:01 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-03-10 10:42:01 -0800 |
commit | 5bd70111d5740844656aaed12206c9f28dd25923 (patch) | |
tree | 7f25810c5e6029dfdc0b491c58393fc8f76fcaf1 /src/DotNetOpenAuth.AspNet/Clients/OAuth/TwitterClient.cs | |
parent | 6e68095c020f88f6c61b3a76f1fa885ead1e7f15 (diff) | |
download | DotNetOpenAuth-5bd70111d5740844656aaed12206c9f28dd25923.zip DotNetOpenAuth-5bd70111d5740844656aaed12206c9f28dd25923.tar.gz DotNetOpenAuth-5bd70111d5740844656aaed12206c9f28dd25923.tar.bz2 |
FxCop fixes and suppressions.
Diffstat (limited to 'src/DotNetOpenAuth.AspNet/Clients/OAuth/TwitterClient.cs')
-rw-r--r-- | src/DotNetOpenAuth.AspNet/Clients/OAuth/TwitterClient.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.AspNet/Clients/OAuth/TwitterClient.cs b/src/DotNetOpenAuth.AspNet/Clients/OAuth/TwitterClient.cs index 66a6a95..01318b8 100644 --- a/src/DotNetOpenAuth.AspNet/Clients/OAuth/TwitterClient.cs +++ b/src/DotNetOpenAuth.AspNet/Clients/OAuth/TwitterClient.cs @@ -79,8 +79,8 @@ namespace DotNetOpenAuth.AspNet.Clients { string userId = response.ExtraData["user_id"]; string userName = response.ExtraData["screen_name"]; - string profileRequestUrl = "http://api.twitter.com/1/users/show.xml?user_id=" - + MessagingUtilities.EscapeUriDataStringRfc3986(userId); + var profileRequestUrl = new Uri("http://api.twitter.com/1/users/show.xml?user_id=" + + MessagingUtilities.EscapeUriDataStringRfc3986(userId)); var profileEndpoint = new MessageReceivingEndpoint(profileRequestUrl, HttpDeliveryMethods.GetRequest); HttpWebRequest request = this.WebWorker.PrepareAuthorizedRequest(profileEndpoint, accessToken); |