Skip to content

Commit 01d185c

Browse files
committed
Remove Console.WriteLine()
1 parent 742f5a2 commit 01d185c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/Request/ServiceCaller.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ public async Task<HttpResponseMessage> CallServiceAsync(ServiceRequest serviceRe
8080
bool rtn = request.Headers.TryAddWithoutValidation(h.Key, h.Value);
8181
if (rtn == false)
8282
{
83-
//throw new InvalidOperationException("不支持的header:" + h.Key);
84-
Console.WriteLine("不支持的header:" + h.Key);
83+
throw new InvalidOperationException("不支持的header:" + h.Key);
8584
}
8685
}
8786

src/Request/SignatureHelper.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ public static string HmacSha1Sign(
5959
var strToSign =
6060
$"{httpMethod.ToUpper()}\n{contentMd5}\n{contentType}\n{date}\n{canonicalizedOSSHeaders}{canonicalizedResource}";
6161

62-
//Console.WriteLine("String to sign:" + strToSign);
63-
6462
return HmacSha1Sign(accessKeySecret, strToSign);
6563
}
6664

0 commit comments

Comments
 (0)