Skip to content

Commit

Permalink
Confirm stdin input is not empty (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
buzzy authored Oct 2, 2024
1 parent 3bac421 commit 0e43756
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ func parseCommand(format string, verbose bool) {
checkErr(err)

body = string(stdin)
}

} else {

if len(body) == 0 {
// FIXME: Disable required attributes for PATCH requests as the specs are incorrect
if method != "PATCH" {
if len(missingBody) > 0 || len(missing) > 0 {
Expand Down

0 comments on commit 0e43756

Please sign in to comment.