mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-07 01:02:55 +08:00
Fix share (#6554)
* fix: http tool * fix: http tool * fix: test * fix: test * fix: test * fix: test
This commit is contained in:
@@ -2,7 +2,7 @@ import { NextAPI } from '@/service/middleware/entry';
|
||||
import { type ApiRequestProps } from '@fastgpt/service/type/next';
|
||||
import { axios } from '@fastgpt/service/common/api/axios';
|
||||
import { authCert } from '@fastgpt/service/support/permission/auth/common';
|
||||
import { isInternalAddress } from '@fastgpt/service/common/system/utils';
|
||||
import { isInternalAddress, PRIVATE_URL_TEXT } from '@fastgpt/service/common/system/utils';
|
||||
import { type NextApiResponse } from 'next';
|
||||
|
||||
export type FetchWorkflowBody = {
|
||||
@@ -27,7 +27,7 @@ async function handler(
|
||||
return Promise.reject('Url is empty');
|
||||
}
|
||||
if (await isInternalAddress(url)) {
|
||||
return Promise.reject('Url is invalid');
|
||||
return Promise.reject(PRIVATE_URL_TEXT);
|
||||
}
|
||||
|
||||
const { data } = await axios.get(url, {
|
||||
|
||||
Reference in New Issue
Block a user