mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
fix curl.ts (#3677)
This commit is contained in:
parent
702ff4283f
commit
8a352f7260
2 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ echo example.json | catj -
|
|||
### curl - print the contents of a url to standard output
|
||||
|
||||
```shell
|
||||
deno --allow-net=deno.land https://deno.land/std/examples/curl.ts https://deno.land/
|
||||
deno --allow-net=deno.land https://deno.land/std/examples/curl.ts -- https://deno.land/
|
||||
```
|
||||
|
||||
### gist - easily create and upload Gists
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
const url_ = Deno.args[1];
|
||||
const url_ = Deno.args[0];
|
||||
const res = await fetch(url_);
|
||||
await Deno.copy(Deno.stdout, res.body);
|
||||
|
|
Loading…
Reference in a new issue