feat: 校验media 忽略cert文件夹
This commit is contained in:
parent
3e0c6e31fc
commit
03707b94d9
|
@ -502,7 +502,7 @@ from django.http import HttpResponseForbidden, HttpResponse
|
||||||
import urllib.parse as urlparse
|
import urllib.parse as urlparse
|
||||||
|
|
||||||
def mediaauth(request):
|
def mediaauth(request):
|
||||||
path = request.path
|
path = request.META.get("HTTP_OURL", '')
|
||||||
if '/cert/' in path:
|
if '/cert/' in path:
|
||||||
return HttpResponse()
|
return HttpResponse()
|
||||||
token = ""
|
token = ""
|
||||||
|
|
Loading…
Reference in New Issue