2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

fix(fetch): fixed ERR_NETWORK mapping for Safari browsers; (#6767)

This commit is contained in:
Dmitriy Mozgovoy
2025-04-15 01:52:53 +03:00
committed by GitHub
parent d4f7df4b30
commit dfe8411c9a
+1 -1
View File
@@ -213,7 +213,7 @@ export default isFetchSupported && (async (config) => {
} catch (err) {
unsubscribe && unsubscribe();
if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
throw Object.assign(
new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),
{