Skip to content

Commit 6199353

Browse files
committed
use streamutil replace CopyTo
1 parent 45ab140 commit 6199353

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

QBox/Auth/DigestAuthClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public override void SetAuth(HttpWebRequest request, Stream body)
2727
{
2828
throw new Exception("stream can not seek");
2929
}
30-
body.CopyTo(buffer);
30+
StreamUtil.Copy(body, buffer);
3131
body.Seek(0, SeekOrigin.Begin);
3232
}
3333
byte[] digest = hmac.ComputeHash(buffer.ToArray());

0 commit comments

Comments
 (0)