fix: 下载配置接口加null检查,前端去掉responseType:text让axios自动解析

This commit is contained in:
mediabot-pt
2026-06-29 23:25:26 +08:00
parent b806a01f13
commit d1445d3920
2 changed files with 4 additions and 1 deletions

View File

@@ -80,6 +80,9 @@ public class ConfigController {
log.error("Failed to read config: siteId={}, version={}", siteId, version, e);
return ResponseEntity.status(500).body("Failed to read config");
}
if (content == null) {
return ResponseEntity.notFound().build();
}
return ResponseEntity.ok()
.eTag(config.getConfigHash())