Websock: Allow HTTP 426 for DNS check (Upgrade)

This commit is contained in:
cytopia 2022-12-26 14:13:01 +01:00
parent 6819619d8a
commit 299b765652
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2

View File

@ -129,7 +129,7 @@
var el_href = document.getElementById('href-' + vhost);
var error = this.responseText;
if (this.readyState == 4 && this.status == 200) {
if (this.readyState == 4 && (this.status == 200 || this.status == 426)) {
clearTimeout(xmlHttpTimeout);
el_valid.className += ' bg-success';
if (el_valid.innerHTML != 'WARN') {