Skip to content

Commit

Permalink
Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRightChoyce committed Sep 14, 2011
1 parent c9df90f commit 6926b72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DiffBotAPI/DiffbotAPI-Article.cs
Expand Up @@ -27,7 +27,7 @@ public DiffBotArticleResultModel Article( string url, bool useHtml = false )

try
{
var source = new WebClient( ).DownloadString(
var source = GetWebClient().DownloadString(
GetEndpointUrl( EndPoints.Article, url, useHtml )
);

Expand Down
4 changes: 2 additions & 2 deletions DiffBotAPI/DiffbotAPI-FrontPage.cs
Expand Up @@ -28,8 +28,8 @@ public DiffBotFrontpageResultModel Frontpage( string url, bool useHtml = false )

XDocument xml = new XDocument( );
try
{
var source = new WebClient( ).OpenRead(
{
var source = GetWebClient().DownloadString(
GetEndpointUrl( EndPoints.FrontPage, uri.AbsoluteUri, useHtml )
);
xml = XDocument.Load( source );
Expand Down

0 comments on commit 6926b72

Please sign in to comment.