Преглед на файлове

Mention json header. updates #395.

JC Brand преди 10 години
родител
ревизия
3cbb93479f
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      docs/source/configuration.rst

+ 3 - 0
docs/source/configuration.rst

@@ -610,6 +610,9 @@ This setting enables the second mechanism, otherwise by default the first will b
 A default JSON encoded list of objects must be returned. Each object
 corresponds to a matched user and needs the keys ``id`` and ``fullname``.
 
+.. note::
+    Make sure your server script sets the header `Content-Type: application/json`.
+
 xhr_user_search_url
 -------------------