Updates
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import https from "https";
|
||||
import http from "http";
|
||||
import { URL } from "url";
|
||||
import _ from "lodash";
|
||||
|
||||
type Param = {
|
||||
scheme?: string;
|
||||
@@ -47,6 +48,9 @@ export default function httpsRequest<Res extends any = any>({
|
||||
headers: {},
|
||||
};
|
||||
|
||||
let loggedRequestOptions = _.cloneDeep(requestOptions);
|
||||
delete loggedRequestOptions["headers"];
|
||||
|
||||
if (path) requestOptions.path = path;
|
||||
|
||||
if (headers) requestOptions.headers = headers;
|
||||
|
||||
Reference in New Issue
Block a user