Skip to content

Commit 0af546c

Browse files
committed
Update the README file and fix a bug in Stream reading
1 parent 1ee9418 commit 0af546c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

AbuseIPDB/Extensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public static async Task<string> GetPreview(this HttpResponseMessage res)
6767
/// <param name="stream">The HTTP response stream.</param>
6868
public static async Task<string> GetPreview(this Stream stream)
6969
{
70+
stream.Position = 0;
7071
using StreamReader sr = new(stream);
7172

7273
char[] buffer = new char[Math.Min(stream.Length, Constants.PreviewMaxLength)];

AbuseIPDB/NuGet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

5-
An async C# library for interacting with the v2 AbuseIPDB API.
5+
### An async C# library for interacting with the v2 AbuseIPDB API.
66

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

0 commit comments

Comments
 (0)