From 13e6e043888ae84fd2f2e70827d16ea11e2f5fe6 Mon Sep 17 00:00:00 2001 From: Jonathan Edey Date: Thu, 22 Feb 2024 14:34:13 -0500 Subject: [PATCH] fix: Added extra note for full list of replaced headers and undo Content-Type change --- firebase_admin/functions.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/firebase_admin/functions.py b/firebase_admin/functions.py index 5d72ec392..b39ee0a66 100644 --- a/firebase_admin/functions.py +++ b/firebase_admin/functions.py @@ -385,7 +385,11 @@ class TaskOptions: Some HTTP request headers will be ignored or replaced: `Authorization`, `Host`, `Content-Length`, `User-Agent` and others cannot be overridden. - `Content-Type` is always set to 'application/json'. + A complete list of these ignored or replaced headers can be found in the following + definition of the HttpRequest.headers property: + https://cloud.google.com/tasks/docs/reference/rest/v2/projects.locations.queues.tasks#httprequest + + By default, Content-Type is set to 'application/json'. The size of the headers must be less than 80KB.