diff --git a/src/microcosm/__init__.py b/src/microcosm/__init__.py index c4a3471..f9f96df 100644 --- a/src/microcosm/__init__.py +++ b/src/microcosm/__init__.py @@ -465,9 +465,11 @@ def get_api_client() -> forgejo.RepositoryApi: @core_bp.route("/", methods=["POST"]) @authed_endpoint def req(): - if request.get_json(): + print("hello") + if request.is_json: docstr, frontmatter, file_path = process_json_post() else: + print(request.form) docstr, frontmatter, file_path = process_multipart_post() frontmatter_str = yaml.dump(frontmatter)