diff --git a/fetch.ts b/fetch.ts index 42acfa22f0..1a722031e3 100644 --- a/fetch.ts +++ b/fetch.ts @@ -1,7 +1,12 @@ // Copyright 2018 Ryan Dahl // All rights reserved. MIT License. -import { assert, log, createResolvable, Resolvable } from "./util"; -import * as util from "./util"; +import { + assert, + log, + createResolvable, + Resolvable, + typedArrayToArrayBuffer +} from "./util"; import { pubInternal, sub } from "./dispatch"; import { main as pb } from "./msg.pb"; @@ -84,7 +89,7 @@ class FetchResponse implements Response { this.onHeader(this); } else { // Body message. Assuming it all comes in one message now. - const ab = util.typedArrayToArrayBuffer(msg.fetchResBody); + const ab = typedArrayToArrayBuffer(msg.fetchResBody); this.bodyWaiter.resolve(ab); } }