mirror of
https://github.com/esphome/esphome.git
synced 2025-08-09 11:57:46 +00:00
cleanup
This commit is contained in:
parent
947456628e
commit
344297b0a7
@ -209,15 +209,6 @@ inline std::string str_trim(const std::string &str) {
|
|||||||
return str.substr(start, end - start + 1);
|
return str.substr(start, end - start + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Extract header value (everything after the colon)
|
|
||||||
inline std::string extract_header_value(const std::string &header) {
|
|
||||||
size_t colon_pos = header.find(':');
|
|
||||||
if (colon_pos == std::string::npos) {
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
return str_trim(header.substr(colon_pos + 1));
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace web_server_idf
|
} // namespace web_server_idf
|
||||||
} // namespace esphome
|
} // namespace esphome
|
||||||
#endif // USE_WEBSERVER_OTA
|
#endif // USE_WEBSERVER_OTA
|
||||||
|
Loading…
x
Reference in New Issue
Block a user