remove stale etag if the server stops sending etags back

workaround for appstore images which stopped sending etags back.
This commit is contained in:
ITotalJustice
2025-04-29 22:41:33 +01:00
parent a2e343daa7
commit ec4b96b95d

View File

@@ -195,6 +195,8 @@ private:
} else { } else {
const auto update_entry = [this, &hash_key](const char* tag, const std::string& value) { const auto update_entry = [this, &hash_key](const char* tag, const std::string& value) {
if (value.empty()) { if (value.empty()) {
// workaround for appstore accepting etags but not returning them.
yyjson_mut_obj_remove_str(hash_key, tag);
return true; return true;
} else { } else {
auto key = yyjson_mut_obj_get(hash_key, tag); auto key = yyjson_mut_obj_get(hash_key, tag);