Commits

Inside Zhou  committed 9c6c878

响应请求时,增加一个参数判断是否输出Html页面而非下载。

  • Participants
  • Parent commits f8a6845

Comments (0)

Files changed (2)

File Inside.Util/Properties/AssemblyInfo.cs

  * 第四位数字表示,bugfix,细节优化这一级别。
  * 版本号互不相关,不再重置为0。
  */
-[assembly: AssemblyVersion("1.5.14.15")]
+[assembly: AssemblyVersion("1.5.14.16")]

File Inside.Util/Web/MvcControllerBase.cs

 		protected virtual ActionResult ViewEx(string viewName, string masterName, object model, string contentType, string fileDownloadName) {
 			var format = this.Request.QueryParams()[this.Key_QueryParam_Format];
 
-			if(string.IsNullOrEmpty(format)) {
+			if(string.IsNullOrEmpty(format) || string.Equals("html", format)) {
 				return base.View(viewName, masterName, model);
 			}
 			else {