feat: 校验media 忽略cert文件夹

This commit is contained in:
caoqianming 2023-08-28 17:36:07 +08:00
parent 3e0c6e31fc
commit 03707b94d9
1 changed files with 1 additions and 1 deletions

View File

@ -502,7 +502,7 @@ from django.http import HttpResponseForbidden, HttpResponse
import urllib.parse as urlparse
def mediaauth(request):
path = request.path
path = request.META.get("HTTP_OURL", '')
if '/cert/' in path:
return HttpResponse()
token = ""