Skip to content

Commit 8790eac

Browse files
committed
更新版本号并简化Cookie设置逻辑
将NuGet包版本号提升至1.0.2.1。同时,简化了Http.cs中Cookie的设置逻辑:value为空字符串时不再移除Cookie,而是直接跳过,移除了原有的删除逻辑。
1 parent 8eae122 commit 8790eac

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

WodToolkit.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<PackAsTool>False</PackAsTool>
77
<!-- NuGet包元数据 -->
88
<PackageId>WodToolKit</PackageId>
9-
<Version>1.0.2.0</Version>
9+
<Version>1.0.2.1</Version>
1010
<Title>WodToolKit - 轻量级.NET工具库</Title>
1111
<Authors>Wod</Authors>
1212
<Company>Wod</Company>

src/Http/Http.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ public CookieManager SetCookie(string name, string value)
5656
throw new ArgumentNullException(nameof(name));
5757
if (value == "")
5858
return this;
59+
else
60+
_cookies[name] = value;
5961
/*if (value == "deleted" || string.IsNullOrEmpty(value))
6062
_cookies.Remove(name);
6163
else

0 commit comments

Comments
 (0)