From 1907d791e1762aae7db732eae63ead3c98c62638 Mon Sep 17 00:00:00 2001 From: Yeuoly Date: Tue, 24 Sep 2024 16:15:50 +0800 Subject: [PATCH] enhance: add gzip --- api/core/plugin/manager/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/core/plugin/manager/base.py b/api/core/plugin/manager/base.py index fdc15f633c..fd18b3798e 100644 --- a/api/core/plugin/manager/base.py +++ b/api/core/plugin/manager/base.py @@ -31,6 +31,7 @@ class BasePluginManager: url = URL(str(plugin_daemon_inner_api_baseurl)) / path headers = headers or {} headers["X-Api-Key"] = plugin_daemon_inner_api_key + headers["Accept-Encoding"] = "gzip, deflate, br" if headers.get("Content-Type") == "application/json" and isinstance(data, dict): data = json.dumps(data)