esp_https_ota command ignores http status code 304 (Not Modified) (IDFGH-14016) #14839
Open
3 tasks done
Labels
Status: Reviewing
Issue is being reviewed
Answers checklist.
General issue report
The
esp_https_ota
component tries to download the binary when it receives a304
HTTP status code. I think it should stop the OTA progress, because this status code should indicate that the firmware is already up to date.According to MDN:
Maybe the same should be done for status code 204, which according to MDN means:
Returning 404 will stop the OTA in the current esp-idf, but I don't think that is the correct status code to use, as the URL is valid. I would only expect a 404 if the URL doesn't point to a valid location.
Is this something that can be implemented in ESP-IDF?
The text was updated successfully, but these errors were encountered: