mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 09:17:46 +01:00
web_server_idf: fix call with hardcoded http code (#5942)
This commit is contained in:
parent
8653972cb8
commit
29fb2a5360
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ class AsyncWebServerRequest {
|
||||||
// NOLINTNEXTLINE(readability-identifier-naming)
|
// NOLINTNEXTLINE(readability-identifier-naming)
|
||||||
AsyncWebServerResponse *beginResponse(int code, const char *content_type) {
|
AsyncWebServerResponse *beginResponse(int code, const char *content_type) {
|
||||||
auto *res = new AsyncWebServerResponseEmpty(this); // NOLINT(cppcoreguidelines-owning-memory)
|
auto *res = new AsyncWebServerResponseEmpty(this); // NOLINT(cppcoreguidelines-owning-memory)
|
||||||
this->init_response_(res, 200, content_type);
|
this->init_response_(res, code, content_type);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
// NOLINTNEXTLINE(readability-identifier-naming)
|
// NOLINTNEXTLINE(readability-identifier-naming)
|
||||||
|
|
Loading…
Reference in a new issue