File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments