Changing SMS/MFA

This commit is contained in:
stephb9959
2022-05-06 08:47:23 -07:00
parent ce1764919f
commit 8076467b20
3 changed files with 12 additions and 13 deletions

View File

@@ -2011,7 +2011,13 @@ namespace OpenWifi {
return false;
}
inline void SetCommonHeaders(bool CloseConnection=false) {
void DrainBody() {
if (Request->getContentLength() > 0) {
std::ignore = ParseStream();
}
}
inline void SetCommonHeaders(bool CloseConnection=false) {
Response->setVersion(Poco::Net::HTTPMessage::HTTP_1_1);
Response->setChunkedTransferEncoding(true);
Response->setContentType("application/json");