mirror of
https://github.com/nushell/nushell
synced 2024-12-26 13:03:07 +00:00
Fix multipart/form-data post example (#14291)
# Description Thanks to @weirdan [in Discord](https://discord.com/channels/601130461678272522/614593951969574961/1304508148207583345) for pointing out that correct syntax for `http post --content-type multipart/form-data`. The existing example was incomplete, so I've updated it. # User-Facing Changes Doc-only # Tests + Formatting `toolkit test` currently seems to be broken, so relying on CI # After Submitting N/A
This commit is contained in:
parent
919d55f3fc
commit
6c7129cc0c
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ impl Command for SubCommand {
|
||||||
},
|
},
|
||||||
Example {
|
Example {
|
||||||
description: "Upload a file to example.com",
|
description: "Upload a file to example.com",
|
||||||
example: "http post --content-type multipart/form-data https://www.example.com { audio: (open -r file.mp3) }",
|
example: "http post --content-type multipart/form-data https://www.example.com { file: (open -r file.mp3 | into binary) }",
|
||||||
result: None,
|
result: None,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue