From e35f50067a4ee78a1532597c8cf5a4a7e731637e Mon Sep 17 00:00:00 2001 From: walterbm-cohere <140439254+walterbm-cohere@users.noreply.github.com> Date: Tue, 5 Dec 2023 14:53:36 -0500 Subject: [PATCH 1/2] Update dropbox/provider/__init__.py --- dropbox/provider/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dropbox/provider/__init__.py b/dropbox/provider/__init__.py index 6c2834bdb..ca32805cd 100644 --- a/dropbox/provider/__init__.py +++ b/dropbox/provider/__init__.py @@ -30,4 +30,5 @@ def create_app() -> connexion.FlaskApp: 1 ].upper() # Current directory name, upper-cased flask_app.config.from_prefixed_env(config_prefix) + flask_app.config["APP_ID"] = config_prefix return flask_app From 5e2865709f4de94b465700dafa874177a892ccce Mon Sep 17 00:00:00 2001 From: walterbm-cohere <140439254+walterbm-cohere@users.noreply.github.com> Date: Tue, 5 Dec 2023 14:53:47 -0500 Subject: [PATCH 2/2] Update dropbox/provider/app.py --- dropbox/provider/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dropbox/provider/app.py b/dropbox/provider/app.py index 237b2f816..0bb6e4769 100644 --- a/dropbox/provider/app.py +++ b/dropbox/provider/app.py @@ -24,7 +24,7 @@ def search(body): except UpstreamProviderError as error: logger.error(f"Upstream search error: {error.message}") abort(502, error.message) - return {"results": data} + return {"results": data}, 200, {"X-Connector-Id": app.config.get("APP_ID")} def apikey_auth(token):