окно подтверждения применения настроек BUC и LNB, фикс нулевой длинны HTTP запроса
This commit is contained in:
parent
800473b4e3
commit
c0e7e1e300
@ -252,6 +252,9 @@ namespace http::server {
|
|||||||
return good;
|
return good;
|
||||||
}
|
}
|
||||||
contentLenghtHeader = std::stol(content_len);
|
contentLenghtHeader = std::stol(content_len);
|
||||||
|
if (contentLenghtHeader == 0) {
|
||||||
|
return good;
|
||||||
|
}
|
||||||
state_ = expecting_payload;
|
state_ = expecting_payload;
|
||||||
if (contentLenghtHeader > HTTP_MAX_PAYLOAD) {
|
if (contentLenghtHeader > HTTP_MAX_PAYLOAD) {
|
||||||
return bad;
|
return bad;
|
||||||
|
@ -859,6 +859,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
settingsSubmitBucLnb() {
|
settingsSubmitBucLnb() {
|
||||||
|
if (this.submitStatus.bucLnb) { return }
|
||||||
let query = {
|
let query = {
|
||||||
"buc.refClk10M": this.param.buc.refClk10M,
|
"buc.refClk10M": this.param.buc.refClk10M,
|
||||||
"buc.powering": parseInt(this.param.buc.powering),
|
"buc.powering": parseInt(this.param.buc.powering),
|
||||||
@ -878,6 +879,9 @@
|
|||||||
}).then(async (resp) => {
|
}).then(async (resp) => {
|
||||||
this.submitStatus.bucLnb = false
|
this.submitStatus.bucLnb = false
|
||||||
this.updateBucLnbSettings(await resp.json())
|
this.updateBucLnbSettings(await resp.json())
|
||||||
|
}).catch((reason) => {
|
||||||
|
this.submitStatus.bucLnb = false
|
||||||
|
alert(`Ошибка при применении настроек: ${reason}`)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -937,6 +941,9 @@
|
|||||||
}).then(async (resp) => {
|
}).then(async (resp) => {
|
||||||
this.submitStatus.qos = false
|
this.submitStatus.qos = false
|
||||||
this.updateQosSettings(await resp.json())
|
this.updateQosSettings(await resp.json())
|
||||||
|
}).catch((reason) => {
|
||||||
|
this.submitStatus.qos = false
|
||||||
|
alert(`Ошибка при применении настроек: ${reason}`)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user