From 77eee644c9c9bf6e3c19a5c6efb9d31f5d91318e Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Sun, 2 Jul 2023 22:40:04 -0400 Subject: move body to stdin --- examples/body.sh | 4 ++-- examples/command.sh | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/body.sh b/examples/body.sh index 5c56df2..bf671df 100755 --- a/examples/body.sh +++ b/examples/body.sh @@ -4,7 +4,7 @@ # we still need to tell there will be no more headers printf "\n" -# the body of any http request made will be stored in argument 1 -printf "$1" +# the body of any http request made will be stored in stdin +cat exit 200 diff --git a/examples/command.sh b/examples/command.sh index 52a5666..64e159b 100755 --- a/examples/command.sh +++ b/examples/command.sh @@ -6,6 +6,5 @@ printf "\n" neofetch -# return http code 418 im a teapot -exit 418 +exit 200 -- cgit v1.2.3-freya