Skip to content

Commit bc68cfa

Browse files
hmueller01hasenradball
authored andcommitted
add DEBUG payload output (esp8266#8745)
1 parent d70a52f commit bc68cfa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ HTTPUpdateResult ESP8266HTTPUpdate::handleUpdate(HTTPClient& http, const String&
208208
DEBUG_HTTP_UPDATE("[httpUpdate] Server header:\n");
209209
DEBUG_HTTP_UPDATE("[httpUpdate] - code: %d\n", code);
210210
DEBUG_HTTP_UPDATE("[httpUpdate] - len: %d\n", len);
211+
if(code != HTTP_CODE_OK) {
212+
DEBUG_HTTP_UPDATE("[httpUpdate] - payload: %s\n", http.getString().c_str());
213+
}
211214

212215
String md5;
213216
if (_md5Sum.length()) {

0 commit comments

Comments
 (0)