bugfix: corregir headers de gitea
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user