From 7c809650daa65a6eec94a413234a66557b9b64dc Mon Sep 17 00:00:00 2001 From: Nicolas Carlier Date: Wed, 19 Oct 2022 18:04:17 +0200 Subject: [PATCH] doc(): fix JSON payload example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1e759a8..c21a6ee 100644 --- a/README.md +++ b/README.md @@ -166,7 +166,7 @@ echo "Script parameters: $1" The result: ```bash -$ curl --data @test.json http://localhost:8080/echo?foo=bar +$ curl --data @test.json -H 'Content-Type: application/json' http://localhost:8080/echo?foo=bar Hook information: name=echo, id=1, method=POST Query parameter: foo=bar Header parameter: user-agent=curl/7.52.1