From 1131b29e3757b5972127e925e758334353a0ee36 Mon Sep 17 00:00:00 2001 From: db0 Date: Sat, 16 Mar 2024 23:08:18 +0100 Subject: [PATCH] fix: lint --- horde/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/horde/__init__.py b/horde/__init__.py index 0e3a55f2..7a719401 100644 --- a/horde/__init__.py +++ b/horde/__init__.py @@ -19,9 +19,9 @@ def after_request(response): response.headers["Access-Control-Allow-Origin"] = "*" response.headers["Access-Control-Allow-Methods"] = "POST, GET, OPTIONS, PUT, DELETE, PATCH" - response.headers[ - "Access-Control-Allow-Headers" - ] = "Accept, Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, apikey, Client-Agent, X-Fields" + response.headers["Access-Control-Allow-Headers"] = ( + "Accept, Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, apikey, Client-Agent, X-Fields" + ) response.headers["Horde-Node"] = f"{socket.gethostname()}:{args.port}:{HORDE_VERSION}" return response