summaryrefslogtreecommitdiff
path: root/cli/js/fetch.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-02-25 09:14:27 -0500
committerGitHub <noreply@github.com>2020-02-25 09:14:27 -0500
commit91b606aaae23bcb790b55adc5fe70a182a37d564 (patch)
tree16b56a21ffcb3991569eda984fbd14073bdbd3ae /cli/js/fetch.ts
parent805992b14a65a6dbfb857dea6d9b657477de043d (diff)
Clean up how we use opIds (#4118)
Diffstat (limited to 'cli/js/fetch.ts')
-rw-r--r--cli/js/fetch.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/js/fetch.ts b/cli/js/fetch.ts
index 43a23cb59..2f493c02e 100644
--- a/cli/js/fetch.ts
+++ b/cli/js/fetch.ts
@@ -15,7 +15,6 @@ import { Buffer } from "./buffer.ts";
import { FormData } from "./form_data.ts";
import { URL } from "./url.ts";
import { URLSearchParams } from "./url_search_params.ts";
-import * as dispatch from "./dispatch.ts";
import { sendAsync } from "./dispatch_json.ts";
function getHeaderValueParams(value: string): Map<string, string> {
@@ -469,7 +468,7 @@ async function sendFetchReq(
headers: headerArray
};
- return (await sendAsync(dispatch.OP_FETCH, args, zeroCopy)) as FetchResponse;
+ return (await sendAsync("op_fetch", args, zeroCopy)) as FetchResponse;
}
/** Fetch a resource from the network. */