Skip to content

Commit

Permalink
修复预签名时+特殊编码问题
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnnqin committed Jan 3, 2023
1 parent b79fb5e commit f4c349a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion QCloudCSharpSDK/COSXML/COSXML-Netcore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<Deterministic>true</Deterministic>

<PackageId>Tencent.QCloud.Cos.Sdk</PackageId>
<Version>5.4.33.0</Version>
<Version>5.4.34.0</Version>
<Authors>Tencent</Authors>
<Company>Tencent</Company>
<description>Tencent Cloud COS(Cloud Object Service) .Net SDK</description>
Expand Down
2 changes: 1 addition & 1 deletion QCloudCSharpSDK/COSXML/Common/CosVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace COSXML.Common
{
public sealed class CosVersion
{
private static string SDKVersion = "5.4.33.0";
private static string SDKVersion = "5.4.34.0";

public static string GetUserAgent()
{
Expand Down
2 changes: 1 addition & 1 deletion QCloudCSharpSDK/COSXML/CosXmlServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ public string GenerateSignURL(PreSignatureStruct preSignatureStruct)
preSignatureStruct.key = "/" + preSignatureStruct.key;
}

urlBuilder.Append(preSignatureStruct.key);
urlBuilder.Append(preSignatureStruct.key.Replace("+", "%2B"));

string sign = GenerateSign(preSignatureStruct.httpMethod, preSignatureStruct.key,
preSignatureStruct.queryParameters, preSignatureStruct.headers,
Expand Down

0 comments on commit f4c349a

Please sign in to comment.