mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 19:59:50 +08:00
enhance: add gzip
This commit is contained in:
parent
fb3a701c86
commit
1907d791e1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user