mirror of
https://github.com/usebruno/bruno.git
synced 2025-06-27 23:41:46 +02:00
Merge pull request #1153 from grahamwhiteuk/match-protocolregex-with-axios
refactor: protocol regex matches axios
This commit is contained in:
commit
d3bec5631e
@ -17,7 +17,7 @@ const { SocksProxyAgent } = require('socks-proxy-agent');
|
|||||||
const { makeAxiosInstance } = require('../utils/axios-instance');
|
const { makeAxiosInstance } = require('../utils/axios-instance');
|
||||||
const { shouldUseProxy, PatchedHttpsProxyAgent } = require('../utils/proxy-util');
|
const { shouldUseProxy, PatchedHttpsProxyAgent } = require('../utils/proxy-util');
|
||||||
|
|
||||||
const protocolRegex = /([a-zA-Z]{2,20}:\/\/)(.*)/;
|
const protocolRegex = /^([-+\w]{1,25})(:?\/\/|:)/;
|
||||||
|
|
||||||
const runSingleRequest = async function (
|
const runSingleRequest = async function (
|
||||||
filename,
|
filename,
|
||||||
|
@ -72,7 +72,7 @@ const getEnvVars = (environment = {}) => {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
const protocolRegex = /([a-zA-Z]{2,20}:\/\/)(.*)/;
|
const protocolRegex = /^([-+\w]{1,25})(:?\/\/|:)/;
|
||||||
|
|
||||||
const configureRequest = async (
|
const configureRequest = async (
|
||||||
collectionUid,
|
collectionUid,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user