mirror of
https://github.com/nushell/nushell.git
synced 2024-11-23 17:03:45 +01: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
@ -129,7 +129,7 @@ impl Command for SubCommand {
|
||||
},
|
||||
Example {
|
||||
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,
|
||||
},
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user