dev-experiment should call method directly
This commit is contained in:
parent
9f57aa1cc5
commit
e80e3f28fe
@ -129,10 +129,8 @@ export class DevExperimentHttpLib implements HttpRequestLibrary {
|
||||
url: string,
|
||||
opt?: HttpRequestOptions | undefined,
|
||||
): Promise<HttpResponse> {
|
||||
return this.fetch(url, {
|
||||
method: "GET",
|
||||
...opt,
|
||||
});
|
||||
logger.info(`devexperiment httplib ${url}`);
|
||||
return this.underlyingLib.get(url, opt);
|
||||
}
|
||||
|
||||
postJson(
|
||||
@ -140,11 +138,8 @@ export class DevExperimentHttpLib implements HttpRequestLibrary {
|
||||
body: any,
|
||||
opt?: HttpRequestOptions | undefined,
|
||||
): Promise<HttpResponse> {
|
||||
return this.fetch(url, {
|
||||
method: "POST",
|
||||
body,
|
||||
...opt,
|
||||
});
|
||||
logger.info(`devexperiment httplib ${url}`);
|
||||
return this.underlyingLib.postJson(url, body, opt);
|
||||
}
|
||||
|
||||
fetch(
|
||||
|
Loading…
Reference in New Issue
Block a user