https
This commit is contained in:
@@ -72,6 +72,7 @@ const getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => {
|
|||||||
const encoder = config.ENCODE_PATH || encodeURI
|
const encoder = config.ENCODE_PATH || encodeURI
|
||||||
|
|
||||||
const path = options.url
|
const path = options.url
|
||||||
|
.replace("{http", "https")
|
||||||
.replace("{api-version}", config.VERSION)
|
.replace("{api-version}", config.VERSION)
|
||||||
.replace(/{(.*?)}/g, (substring: string, group: string) => {
|
.replace(/{(.*?)}/g, (substring: string, group: string) => {
|
||||||
if (options.path?.hasOwnProperty(group)) {
|
if (options.path?.hasOwnProperty(group)) {
|
||||||
|
Reference in New Issue
Block a user