mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-01-04 03:49:23 +02:00
Fix empty response.
This commit is contained in:
parent
3468c1a214
commit
a87a0dcdad
@ -521,12 +521,11 @@ func LoadConfig(w http.ResponseWriter, r *http.Request) {
|
||||
if err := json.NewEncoder(w).Encode(resp); err != nil {
|
||||
log.Printf("Error tailing logfile", err)
|
||||
}
|
||||
return
|
||||
} else {
|
||||
resp.Data = configContents
|
||||
resp.Success = true
|
||||
}
|
||||
|
||||
resp.Data = configContents
|
||||
resp.Success = true
|
||||
|
||||
if err := json.NewEncoder(w).Encode(resp); err != nil {
|
||||
log.Printf("Error encoding config file JSON reponse: ", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user