diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -38,7 +38,7 @@ printf "joe\n" exit 200 ``` -Finally if you wish to read the request body given by the user, that is always stored in argument 1. For example to create a echo endpoint: +Finally if you wish to read the request body given by the user, that is always stored in stdin. For example to create a echo endpoint: ```sh #!/bin/bash @@ -46,8 +46,8 @@ Finally if you wish to read the request body given by the user, that is always s # 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 ``` |