Changeset 0c6b92a for imaps-frontend/node_modules/axios/lib/adapters
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/axios/lib/adapters/http.js
rd565449 r0c6b92a 5 5 import buildFullPath from '../core/buildFullPath.js'; 6 6 import buildURL from './../helpers/buildURL.js'; 7 import {getProxyForUrl}from 'proxy-from-env';7 import proxyFromEnv from 'proxy-from-env'; 8 8 import http from 'http'; 9 9 import https from 'https'; … … 84 84 let proxy = configProxy; 85 85 if (!proxy && proxy !== false) { 86 const proxyUrl = getProxyForUrl(location);86 const proxyUrl = proxyFromEnv.getProxyForUrl(location); 87 87 if (proxyUrl) { 88 88 proxy = new URL(proxyUrl); … … 315 315 } 316 316 } 317 } else if (utils.isBlob(data) ) {317 } else if (utils.isBlob(data) || utils.isFile(data)) { 318 318 data.size && headers.setContentType(data.type || 'application/octet-stream'); 319 319 headers.setContentLength(data.size || 0); … … 570 570 571 571 const err = new AxiosError( 572 ' maxContentLength size of ' + config.maxContentLength + ' exceeded',572 'stream has been aborted', 573 573 AxiosError.ERR_BAD_RESPONSE, 574 574 config,
Note:
See TracChangeset
for help on using the changeset viewer.