Created
December 3, 2017 21:26
-
-
Save angelovstanton/00096d482748ccff0a55f0d53a696f2c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async Task OnRequestBlockResourceEventHandler(object sender, SessionEventArgs e) | |
{ | |
if (e.WebSession.Request.RequestUri.ToString().Contains("analytics")) | |
{ | |
string customBody = string.Empty; | |
await e.Ok(Encoding.UTF8.GetBytes(customBody)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment