Skip to content

Commit

Permalink
add DEBUG payload output (#8745)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmueller01 committed Dec 14, 2022
1 parent a4a8782 commit 8e79833
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ HTTPUpdateResult ESP8266HTTPUpdate::handleUpdate(HTTPClient& http, const String&
DEBUG_HTTP_UPDATE("[httpUpdate] Server header:\n");
DEBUG_HTTP_UPDATE("[httpUpdate] - code: %d\n", code);
DEBUG_HTTP_UPDATE("[httpUpdate] - len: %d\n", len);
if(code != HTTP_CODE_OK) {
DEBUG_HTTP_UPDATE("[httpUpdate] - payload: %s\n", http.getString().c_str());
}

String md5;
if (_md5Sum.length()) {
Expand Down

0 comments on commit 8e79833

Please sign in to comment.