File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff 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 ) ] ;
Original file line number Diff line number Diff line change 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
88This library provides an easy interface for interacting with the v2 AbuseIPDB API.
You can’t perform that action at this time.
0 commit comments