Merge pull request #124 from jficz/fix_92

fix: Don't test for stdin when body non-empty
This commit is contained in:
Jakub Fišer
2025-03-25 21:34:34 +01:00
committed by GitHub
parent 6ef6f9cb59
commit 099181053a

View File

@@ -103,7 +103,7 @@ var rootCmd = &cobra.Command{
return errors.New("unknown delivery method")
}
if hasStdin() {
if body == "" && hasStdin() {
b, err := io.ReadAll(os.Stdin)
if err != nil {
return err