From 043da0e8716da7b28d32e8ed6f6e1a72793a3220 Mon Sep 17 00:00:00 2001 From: Nick Steel Date: Mon, 8 Oct 2018 17:38:39 +0100 Subject: [PATCH] docs: mention required Content-Type header --- docs/api/http.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/api/http.rst b/docs/api/http.rst index 56b72dc1..b9f807e3 100644 --- a/docs/api/http.rst +++ b/docs/api/http.rst @@ -19,7 +19,8 @@ HTTP POST API The Mopidy web server accepts HTTP requests with the POST method to http://localhost:6680/mopidy/rpc, where the ``localhost:6680`` part will vary -with your local setup. The HTTP POST endpoint gives you access to Mopidy's +with your local setup. Your requests must also set the Content-Type header to +application/json. The HTTP POST endpoint gives you access to Mopidy's full core API, but does not give you notification on events. If you need to listen to events, you should probably use the WebSocket API instead.