Skip to content

Commit

Permalink
move comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 8, 2023
1 parent 4452d31 commit 23c153e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/fetch/call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export function createCall(handle: Handle) {

return handle(req, res).then(() => {
// https://developer.mozilla.org/en-US/docs/Web/API/Response/body
// TODO: Ensure _data is either of BodyInit (or narrower) types
// Blob | ArrayBuffer | TypedArray | DataView | FormData | ReadableStream | URLSearchParams | String
let body = res._data as BodyInit | null;
if (
nullBodyResponses.has(res.statusCode) ||
Expand All @@ -63,8 +65,6 @@ export function createCall(handle: Handle) {
delete res._headers["content-length"];
}

// TODO: Ensure _data is either of BodyInit (or narrower) types
// Blob | ArrayBuffer | TypedArray | DataView | FormData | ReadableStream | URLSearchParams | String
const r = {
body,
headers: res._headers,
Expand Down

0 comments on commit 23c153e

Please sign in to comment.