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
80
80
bool rtn = request . Headers . TryAddWithoutValidation ( h . Key , h . Value ) ;
81
81
if ( rtn == false )
82
82
{
83
- //throw new InvalidOperationException("不支持的header:" + h.Key);
84
- Console . WriteLine ( "不支持的header:" + h . Key ) ;
83
+ throw new InvalidOperationException ( "不支持的header:" + h . Key ) ;
85
84
}
86
85
}
87
86
Original file line number Diff line number Diff line change @@ -59,8 +59,6 @@ public static string HmacSha1Sign(
59
59
var strToSign =
60
60
$ "{ httpMethod . ToUpper ( ) } \n { contentMd5 } \n { contentType } \n { date } \n { canonicalizedOSSHeaders } { canonicalizedResource } ";
61
61
62
- //Console.WriteLine("String to sign:" + strToSign);
63
-
64
62
return HmacSha1Sign ( accessKeySecret , strToSign ) ;
65
63
}
66
64
You can’t perform that action at this time.
0 commit comments