Skip to content

Commit 8e1c405

Browse files
committed
Updating .NET Cookie JSON serialization to omit SameSite when null
1 parent 411d798 commit 8e1c405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/webdriver/Cookie.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public virtual bool IsHttpOnly
183183
/// <summary>
184184
/// Gets the SameSite setting for the cookie.
185185
/// </summary>
186-
[JsonProperty("sameSite")]
186+
[JsonProperty("sameSite", NullValueHandling = NullValueHandling.Ignore)]
187187
public virtual string SameSite
188188
{
189189
get { return this.sameSite; }

0 commit comments

Comments
 (0)