From c7888c74f1c3c72fe7a6f9e6ca8fe573279da0b0 Mon Sep 17 00:00:00 2001 From: Jonathan Teran Carballo Date: Wed, 8 Jul 2026 21:19:24 -0300 Subject: [PATCH] bugfix: corregir headers de gitea --- src/git_flow/remote/gitea.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/git_flow/remote/gitea.py b/src/git_flow/remote/gitea.py index 7626c39..f9afef7 100644 --- a/src/git_flow/remote/gitea.py +++ b/src/git_flow/remote/gitea.py @@ -46,3 +46,10 @@ class GiteaRemoteAPI(RemoteAPI): def get_endpoint(self, resource: str) -> str: return f"{self.base_url}/api/v1/repos/{self.repository}{resource}" + + def get_headers(self): + return { + "Accept": "application/json", + "Content-Type": "application/json", + "Authorization": "token " + self.token, + }