瀏覽代碼

Adds note about ACCEPT_CONTENT

Ask Solem 11 年之前
父節點
當前提交
07d7db25de
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      docs/userguide/security.rst

+ 8 - 0
docs/userguide/security.rst

@@ -104,6 +104,14 @@ You can disable untrusted content by specifying
 a whitelist of accepted content-types in the :setting:`CELERY_ACCEPT_CONTENT`
 setting:
 
+.. versionadded:: 3.0.18
+
+.. note::
+
+    This setting was first supported in version 3.0.18. If you're
+    running an earlier version it will simply be ignored, so make
+    sure you're running a version that supports it.
+
 .. code-block:: python
 
     CELERY_ACCEPT_CONTENT = ['json']