diff --git a/__init__.py b/__init__.py index 6aadb9b..704aadd 100644 --- a/__init__.py +++ b/__init__.py @@ -228,6 +228,7 @@ def get_def_headers(url=""): if url.startswith("https://civitai.com/"): api_key = server_settings["civitai_api_key"] if (api_key != ""): + def_headers["Content-Type"] = f"application/json" def_headers["Authorization"] = f"Bearer {api_key}" url += "&" if "?" in url else "?" # not the most robust solution url += f"token={api_key}" # TODO: Authorization didn't work in the header