소스 검색

old changes

aeth 10 시간 전
부모
커밋
d314edfe38
1개의 변경된 파일과 4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      pkg/controller/cdn_handlers.go

+ 4 - 0
pkg/controller/cdn_handlers.go

@@ -31,6 +31,10 @@ func (c *Controller) ServeImage(ctx *gin.Context) {
 			"msg":   err.Error(),
 		})
 	}
+	if path.Ext(css) == "webm" {
+		ctx.Data(200, "video/webm", b)
+		return
+	}
 	ctx.Data(200, "image/jpeg", b)
 }