Use proper uppercase "UTF-8" in charset field

This commit is contained in:
Chocobo1
2020-09-07 12:08:23 +08:00
parent 2f1016494b
commit 5677ce1cc9
5 changed files with 5 additions and 5 deletions

View File

@@ -42,7 +42,7 @@ function submitLoginForm() {
const xhr = new XMLHttpRequest();
xhr.open('POST', 'api/v2/auth/login', true);
xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded; charset=utf-8');
xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded; charset=UTF-8');
xhr.addEventListener('readystatechange', function() {
if (xhr.readyState === 4) { // DONE state
if ((xhr.status === 200) && (xhr.responseText === "Ok."))