Fix condition to read save data from request body

pull/4/head
maru 9 months ago
parent 977a05049e
commit d97e07b522
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D

@ -159,8 +159,8 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
var save any
// /savedata/delete specifies datatype, but doesn't expect data in body
if r.URL.Path != "/savedata/delete" {
// /savedata/get and /savedata/delete specify datatype, but don't expect data in body
if r.URL.Path != "/savedata/get" && r.URL.Path != "/savedata/delete" {
if datatype == 0 {
var system defs.SystemSaveData
err = json.NewDecoder(r.Body).Decode(&system)

Loading…
Cancel
Save