Skip to content

Commit d4897cd

Browse files
mkilinskidevearlephilhower
authored andcommitted
Added Chip ID into HTTP header (#3877)
1 parent 5d20137 commit d4897cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ HTTPUpdateResult ESP8266HTTPUpdate::handleUpdate(HTTPClient& http, const String&
263263
http.setTimeout(_httpClientTimeout);
264264
http.setFollowRedirects(_followRedirects);
265265
http.setUserAgent(F("ESP8266-http-Update"));
266+
http.addHeader(F("x-ESP8266-Chip-ID"), String(ESP.getChipId()));
266267
http.addHeader(F("x-ESP8266-STA-MAC"), WiFi.macAddress());
267268
http.addHeader(F("x-ESP8266-AP-MAC"), WiFi.softAPmacAddress());
268269
http.addHeader(F("x-ESP8266-free-space"), String(ESP.getFreeSketchSpace()));

0 commit comments

Comments
 (0)