Skip to content

Commit

Permalink
Use readAll from std/io instead of Deno namespace (deprecated)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpaquim committed Jun 20, 2021
1 parent a5a11ec commit 221d868
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/adapter-deno/src/http.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { readAll } from 'https://deno.land/std@0.95.0/io/mod.ts';

// import type { ServerRequest } from 'https://deno.land/std@0.95.0/http/server.ts';

/**
Expand All @@ -20,7 +22,7 @@ export async function getRawBody(req) {
return null;
}

const data = await Deno.readAll(req.body);
const data = await readAll(req.body);

// return raw buffer for octet-stream content-type
if (type === 'application/octet-stream') {
Expand Down

0 comments on commit 221d868

Please sign in to comment.