mirror of
https://github.com/curl/curl.git
synced 2026-08-25 17:23:37 +03:00
curl: prevent binary output spewed to terminal
... unless "--output -" is used. Binary detection is done by simply checking for a binary zero in early data. Added test 1425 1426 to verify. Closes #1512
This commit is contained in:
parent
ce2cc568f8
commit
5385450afd
10 changed files with 47 additions and 17 deletions
|
|
@ -252,7 +252,7 @@ static const struct helptxt helptext[] = {
|
|||
"Use HTTP NTLM authentication"},
|
||||
{" --ntlm-wb",
|
||||
"Use HTTP NTLM authentication with winbind"},
|
||||
{" --oauth2-bearer",
|
||||
{" --oauth2-bearer <token>",
|
||||
"OAuth 2 Bearer Token"},
|
||||
{"-o, --output <file>",
|
||||
"Write to file instead of stdout"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue