Skip to content

Commit

Permalink
return statusCode
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanMagnan committed Aug 23, 2022
1 parent c515e20 commit dad07ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/HtmlAgilityPack.Shared/HtmlWeb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2398,6 +2398,7 @@ public async Task<HtmlDocument> LoadFromWebAsync(Uri uri, Encoding encoding, Net
}

var e = await client.GetAsync(uri, cancellationToken).ConfigureAwait(false);
_statusCode = e.StatusCode;

var html = string.Empty;
if (encoding != null)
Expand Down

0 comments on commit dad07ba

Please sign in to comment.