From 31c9c23a18de720499f7af144ac9b1f00f2b26f3 Mon Sep 17 00:00:00 2001 From: Robin Munn Date: Mon, 14 Sep 2020 19:14:10 +0700 Subject: [PATCH] Gitea API wants tokens, not HTTP basic auth (#4854) --- core/modules/savers/gitea.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/savers/gitea.js b/core/modules/savers/gitea.js index d88800d8c..2c0242566 100644 --- a/core/modules/savers/gitea.js +++ b/core/modules/savers/gitea.js @@ -31,7 +31,7 @@ GiteaSaver.prototype.save = function(text,method,callback) { headers = { "Accept": "application/json", "Content-Type": "application/json;charset=UTF-8", - "Authorization": "Basic " + window.btoa(username + ":" + password) + "Authorization": "token " + password }; // Bail if we don't have everything we need if(!username || !password || !repo || !filename) {