Skip to content

Commit 7ed2141

Browse files
committed
Add missing placeholder for empty options
1 parent 9e6f713 commit 7ed2141

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

dotnet/src/webdriver/BiDi/Modules/BrowsingContext/BrowsingContextNetworkModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public async Task<Intercept> InterceptAuthAsync(Func<AuthRequiredEventArgs, Task
7171

7272
public Task SetCacheBehaviorAsync(CacheBehavior behavior, BrowsingContextSetCacheBehaviorOptions? options = null)
7373
{
74-
SetCacheBehaviorOptions setCacheBehaviorOptions = new()
74+
SetCacheBehaviorOptions setCacheBehaviorOptions = new(options)
7575
{
7676
Contexts = [context]
7777
};

dotnet/src/webdriver/BiDi/Modules/Network/SetCacheBehaviorCommand.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@ internal record SetCacheBehaviorCommandParameters(CacheBehavior CacheBehavior) :
3333

3434
public record SetCacheBehaviorOptions : CommandOptions
3535
{
36+
public SetCacheBehaviorOptions()
37+
{
38+
39+
}
40+
41+
internal SetCacheBehaviorOptions(BrowsingContextSetCacheBehaviorOptions? options)
42+
{
43+
44+
}
45+
3646
public IEnumerable<BrowsingContext.BrowsingContext>? Contexts { get; set; }
3747
}
3848

0 commit comments

Comments
 (0)