Przeglądaj źródła

fixed: web api remote urls error (#10383)

Co-authored-by: hobo.l <hobo.l@binance.com>
tags/0.11.1
luckylhb90 1 rok temu
rodzic
commit
1ccca7cc68
No account linked to committer's email address
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      api/controllers/web/remote_files.py

+ 1
- 1
api/controllers/web/remote_files.py Wyświetl plik

@@ -12,7 +12,7 @@ from services.file_service import FileService

class RemoteFileInfoApi(WebApiResource):
@marshal_with(remote_file_info_fields)
def get(self, url):
def get(self, app_model, end_user, url):
decoded_url = urllib.parse.unquote(url)
try:
response = ssrf_proxy.head(decoded_url)

Ładowanie…
Anuluj
Zapisz