tvavrda
(Tomáš Vavrda)
November 10, 2025, 10:28am
1
I think this can go away now . It was there to support Flash’s AMF protocol that was handled in a special middleware, so our middleware would just skip trying.
#region IHttpModule Members
public void Dispose() { }
public void Process(IHttpContextWrapper context)
{
if (context.Request.AppRelativeCurrentExecutionFilePath.StartsWith("~/assets/"))
{
return;
}
string mimeType = context.Request.ContentType?.Split(";".ToCharArray())[0];
if (mimeType == "application/x-amf")
{
return;
}
string resultContentType = "text/plain";
if (Analytics.Instance.IsAnalyticsEnabled)
{
RequestAnalytics(context, mimeType);
}
try
{