Skip to content
This repository was archived by the owner on Jan 15, 2023. It is now read-only.

Commit 2ec8f96

Browse files
authored
Merge pull request #1 from xjfnet/master
Update DefaultResourceSchemeHandler.cs
2 parents 829bc03 + 6bc1d59 commit 2ec8f96

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/Chromely.CefSharp/Browser/Handlers/DefaultResourceSchemeHandler.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,14 @@ public override CefReturnValue ProcessRequestAsync(IRequest request, ICallback c
7676
}
7777
}
7878
});
79+
return CefReturnValue.ContinueAsync;
7980
}
80-
81-
return CefReturnValue.ContinueAsync;
81+
else
82+
{
83+
StatusCode = (int)HttpStatusCode.NotFound;
84+
callback.Continue();
85+
return CefReturnValue.ContinueAsync;
86+
}
8287
}
8388

8489
protected virtual void SetResponseInfoOnSuccess()

0 commit comments

Comments
 (0)