mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-06-15 12:26:33 +03:00
remove comments
This commit is contained in:
@@ -688,7 +688,6 @@ std::string calculate(const std::string & expr) {
|
|||||||
|
|
||||||
// perform an HTTP/HTTPS request; returns the HTTP status code (0 on failure or unsupported scheme)
|
// perform an HTTP/HTTPS request; returns the HTTP status code (0 on failure or unsupported scheme)
|
||||||
// the response headers are always stripped, so `result` contains only the body
|
// the response headers are always stripped, so `result` contains only the body
|
||||||
// uses ESP_SSLClient for both schemes (SSL is disabled for plain HTTP), avoiding the HTTPClient dependency
|
|
||||||
int http_request(std::string url, const std::string & method, const std::string & value, JsonObjectConst headers, std::string & result) {
|
int http_request(std::string url, const std::string & method, const std::string & value, JsonObjectConst headers, std::string & result) {
|
||||||
int httpResult = 0;
|
int httpResult = 0;
|
||||||
const bool is_post = value.length() || Helpers::toLower(method) == "post";
|
const bool is_post = value.length() || Helpers::toLower(method) == "post";
|
||||||
|
|||||||
@@ -2956,9 +2956,6 @@ bool System::uploadFirmwareURL(const char * url) {
|
|||||||
|
|
||||||
Shell::loop_all(); // flush log buffers so latest messages are shown in console
|
Shell::loop_all(); // flush log buffers so latest messages are shown in console
|
||||||
|
|
||||||
// detect scheme (case-insensitive). Everything below uses the same code path
|
|
||||||
// for HTTP and HTTPS - ESP_SSLClient is configured as a plain TCP passthrough
|
|
||||||
// when SSL is disabled, so we don't need HTTPClient at all.
|
|
||||||
String scheme = saved_url.substring(0, 8);
|
String scheme = saved_url.substring(0, 8);
|
||||||
scheme.toLowerCase();
|
scheme.toLowerCase();
|
||||||
const bool is_https = scheme.startsWith("https://");
|
const bool is_https = scheme.startsWith("https://");
|
||||||
|
|||||||
Reference in New Issue
Block a user