mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 13:39:04 +08:00
fixed: web api remote urls error (#10383)
Co-authored-by: hobo.l <hobo.l@binance.com>
This commit is contained in:
parent
12a9e2972a
commit
1ccca7cc68
@ -12,7 +12,7 @@ from services.file_service import FileService
|
|||||||
|
|
||||||
class RemoteFileInfoApi(WebApiResource):
|
class RemoteFileInfoApi(WebApiResource):
|
||||||
@marshal_with(remote_file_info_fields)
|
@marshal_with(remote_file_info_fields)
|
||||||
def get(self, url):
|
def get(self, app_model, end_user, url):
|
||||||
decoded_url = urllib.parse.unquote(url)
|
decoded_url = urllib.parse.unquote(url)
|
||||||
try:
|
try:
|
||||||
response = ssrf_proxy.head(decoded_url)
|
response = ssrf_proxy.head(decoded_url)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user