Обнаружение, если HttpModule загружается

Иногда Apache не распознает тип носителя для svg, поэтому попробуйте добавить в свой .htaccess:

AddType image/svg+xml .svg .svgz
8
задан Kieran Benton 22 February 2009 в 19:45
поделиться

1 ответ

HttpModuleCollection modules = HttpContext.Current.ApplicationInstance.Modules;
foreach (string moduleKey in modules.Keys)
{
    IHttpModule module = modules[moduleKey];
    // Do your check here
}
14
ответ дан 5 December 2019 в 12:13
поделиться
Другие вопросы по тегам:

Похожие вопросы: