Software /
code /
prosody-modules
Changeset
4919:b9f8dd9a7fdb
mod_rest/README: Mention the OPTIONS probe fired at the callback
... in passing. Should be documented better. But not this day!
This day, I commit features!
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 09 Apr 2022 00:37:55 +0200 |
parents | 4918:347e34c3c7e2 |
children | 4920:bdac7c717c91 |
files | mod_rest/README.markdown |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_rest/README.markdown Thu Apr 07 17:49:08 2022 +0200 +++ b/mod_rest/README.markdown Sat Apr 09 00:37:55 2022 +0200 @@ -130,7 +130,8 @@ rest_callback_url = "http://my-api.example:9999/stanzas" ``` -To enable JSON payloads set +The preferred format can be indicated via the Accept header in response +to an OPTIONS probe that mod_rest does on startup, or by configuring: ``` {.lua} rest_callback_content_type = "application/json"