Skip to content

Commit

Permalink
Update the README file and fix a bug in Stream reading
Browse files Browse the repository at this point in the history
  • Loading branch information
akacdev committed Nov 25, 2023
1 parent 1ee9418 commit 0af546c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions AbuseIPDB/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public static async Task<string> GetPreview(this HttpResponseMessage res)
/// <param name="stream">The HTTP response stream.</param>
public static async Task<string> GetPreview(this Stream stream)
{
stream.Position = 0;
using StreamReader sr = new(stream);

char[] buffer = new char[Math.Min(stream.Length, Constants.PreviewMaxLength)];
Expand Down
2 changes: 1 addition & 1 deletion AbuseIPDB/NuGet.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![](https://raw.githubusercontent.com/actually-akac/AbuseIPDB/master/AbuseIPDB/icon.svg)

An async C# library for interacting with the v2 AbuseIPDB API.
### An async C# library for interacting with the v2 AbuseIPDB API.

## Usage
This library provides an easy interface for interacting with the v2 AbuseIPDB API.
Expand Down

0 comments on commit 0af546c

Please sign in to comment.