Header Host is now collected by Webserver (#20446)

This commit is contained in:
s-hadinger 2024-01-09 19:34:07 +01:00 committed by GitHub
parent 52dd206fb7
commit 8712aba3c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ All notable changes to this project will be documented in this file.
### Changed
- Renamed button "Consoles" to "Tools"
- Header `Host` is now collected by Webserver
### Fixed

View File

@ -602,7 +602,7 @@ void StartWebserver(int type)
if (!Webserver) {
Webserver = new ESP8266WebServer((HTTP_MANAGER == type || HTTP_MANAGER_RESET_ONLY == type) ? 80 : WEB_PORT);
const char* headerkeys[] = { "Referer" };
const char* headerkeys[] = { "Referer", "Host" };
size_t headerkeyssize = sizeof(headerkeys) / sizeof(char*);
Webserver->collectHeaders(headerkeys, headerkeyssize);