public void Block(string title, Html htmlMessage)
{
//Determine content type requested
// string cc = null;
// while (true) {
// if (Accept == null) {
// if (Uri.AbsolutePath.EndsWith (".js")) {
// cc = "application/x-javascript";
// break;
// }
// if (Uri.AbsolutePath.EndsWith (".css")) {
// cc = "text/css";
// break;
// }
// if (Uri.AbsolutePath.EndsWith (".png")) {
// cc = "image/png";
// break;
// }
// if (Uri.AbsolutePath.EndsWith (".js")) {
// cc = "application/javascript";
// break;
// }
// }
// if (Accept.StartsWith ("text/css")) {
// cc = "text/css";
// break;
// }
//
// cc = "text/html";
// break;
// }
Response = new BlockedResponse (title, htmlMessage);
}