From 0841534188a41e4efe6129193cebcf428d453cfc Mon Sep 17 00:00:00 2001 From: Erik Stephens Date: Thu, 22 Sep 2016 11:03:17 -0700 Subject: [PATCH] Specify Content-Type in example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c9803b6..02a9cc6 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ curl http://localhost:8080/state That calls the `state` method and returns the JSON result. ``` -curl -d '{"host": "web01", "duration": 600}' http://localhost:8080/schedule_downtime +curl -d '{"host": "web01", "duration": 600}' -H 'Content-Type: application/json' http://localhost:8080/schedule_downtime ``` This POSTs the given JSON object to the `schedule_downtime` method. You