From 7bf328b158a0cfc9d82d92416f529a0eaaabcdcc Mon Sep 17 00:00:00 2001 From: liushuyu Date: Wed, 29 Dec 2021 19:37:47 -0700 Subject: [PATCH] docs/templates/overview: cover some edge-cases in the explanation --- docs/content/documentation/templates/overview.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/content/documentation/templates/overview.md b/docs/content/documentation/templates/overview.md index 39c2968d18..aaa42cc11a 100644 --- a/docs/content/documentation/templates/overview.md +++ b/docs/content/documentation/templates/overview.md @@ -432,6 +432,21 @@ environment variable to the access token you have obtained. {{postdata|safe}} ``` +In case you need to specify multiple headers with the same name, you can specify them like this: + +``` +headers=["accept=application/json,text/html"] +``` + +Which is equivalent to two `Accept` headers with `application/json` and `text/html`. + +In rare cases where the target resource backend is not implemented correctly, you can instead specify +the headers multiple times to archive the same effect: + +``` +headers=["accept=application/json", "accept=text/html"] +``` + #### Data caching Data file loading and remote requests are cached in memory during the build, so multiple requests aren't made