(url, config)
| 20 | } |
| 21 | |
| 22 | function assertValidHttpProtocolURL(url, config) { |
| 23 | if (typeof url === 'string' && malformedHttpProtocol.test(normalizeURLForProtocolCheck(url))) { |
| 24 | throw new AxiosError( |
| 25 | 'Invalid URL: missing "//" after protocol', |
| 26 | AxiosError.ERR_INVALID_URL, |
| 27 | config |
| 28 | ); |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | /** |
| 33 | * Creates a new URL by combining the baseURL with the requestedURL, |
no test coverage detected