Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/axios/lib/adapters/http.js

    rd565449 r0c6b92a  
    55import buildFullPath from '../core/buildFullPath.js';
    66import buildURL from './../helpers/buildURL.js';
    7 import {getProxyForUrl} from 'proxy-from-env';
     7import proxyFromEnv from 'proxy-from-env';
    88import http from 'http';
    99import https from 'https';
     
    8484  let proxy = configProxy;
    8585  if (!proxy && proxy !== false) {
    86     const proxyUrl = getProxyForUrl(location);
     86    const proxyUrl = proxyFromEnv.getProxyForUrl(location);
    8787    if (proxyUrl) {
    8888      proxy = new URL(proxyUrl);
     
    315315        }
    316316      }
    317     } else if (utils.isBlob(data)) {
     317    } else if (utils.isBlob(data) || utils.isFile(data)) {
    318318      data.size && headers.setContentType(data.type || 'application/octet-stream');
    319319      headers.setContentLength(data.size || 0);
     
    570570
    571571          const err = new AxiosError(
    572             'maxContentLength size of ' + config.maxContentLength + ' exceeded',
     572            'stream has been aborted',
    573573            AxiosError.ERR_BAD_RESPONSE,
    574574            config,
Note: See TracChangeset for help on using the changeset viewer.