diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-08-28 14:57:37 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-08-28 18:25:15 -0400 |
commit | 8f919465b09e0338148d22459fac70fd5d5c9089 (patch) | |
tree | 1d243eadea28675e60c18270d0e723a6d406a2ef /js/request.ts | |
parent | 2b79552dd1d3936c015e3bb07bef8fab09b62a40 (diff) |
Remove @stardazed/streams
This is a regression on several some features in the fetch API. To bring
these back @stardazed/streams simply needs to be ported to TS and
included in the //js directory.
Towards #2608
Diffstat (limited to 'js/request.ts')
-rw-r--r-- | js/request.ts | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/js/request.ts b/js/request.ts index 97bb8944b..5ed1e9d63 100644 --- a/js/request.ts +++ b/js/request.ts @@ -1,13 +1,9 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import * as headers from "./headers"; import * as body from "./body"; - -import * as streams from "@stardazed/streams"; - import * as domTypes from "./dom_types"; const { Headers } = headers; -const { ReadableStream } = streams; function byteUpperCase(s: string): string { return String(s).replace(/[a-z]/g, function byteUpperCaseReplace(c): string { @@ -144,11 +140,6 @@ export class Request extends body.Body implements domTypes.Request { let body2 = this._bodySource; - if (this._bodySource instanceof ReadableStream) { - const tees = (this._bodySource as domTypes.ReadableStream).tee(); - this._stream = this._bodySource = tees[0]; - body2 = tees[1]; - } const cloned = new Request(this.url, { body: body2, method: this.method, |