Ensure that we always fetch the latest sha bypassing cache. (#5126)

Ensure that we always fetch the latest sha bypassing cache.
optimising-macrocalls
saqimtiaz 2020-11-27 22:37:11 +01:00 zatwierdzone przez GitHub
rodzic 9637a29e55
commit 2175be27b0
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -31,7 +31,8 @@ GitHubSaver.prototype.save = function(text,method,callback) {
headers = {
"Accept": "application/vnd.github.v3+json",
"Content-Type": "application/json;charset=UTF-8",
"Authorization": "Basic " + window.btoa(username + ":" + password)
"Authorization": "Basic " + window.btoa(username + ":" + password),
"If-None-Match": ""
};
// Bail if we don't have everything we need
if(!username || !password || !repo || !filename) {