Updates
This commit is contained in:
@@ -124,7 +124,10 @@ export default async function queryDSQLAPI<T = { [k: string]: any }>({
|
||||
// httpsRequest.getHeaders()
|
||||
// );
|
||||
}
|
||||
resolve({ ...responseObj, requestOptions });
|
||||
resolve({
|
||||
...responseObj,
|
||||
requestOptions: loggedRequestOptions,
|
||||
});
|
||||
} catch (error: any) {
|
||||
resolve({
|
||||
success: false,
|
||||
|
||||
@@ -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