GetContentType() 공개 정적인 메소드

public static GetContentType ( string extension ) : string
extension string
리턴 string
예제 #1
0
        public void ReplyWithImage(string path, string originalPath = null)
        {
            var pos = path.LastIndexOf('.');

            if (pos > 0)
            {
                _actualContext.Response.ContentType = ServerBase.GetContentType(path.Substring(pos));
            }

            ReplyWithFileContent(path, originalPath);
        }