[Admin API] Fill Request attribute in router response

This commit is contained in:
one-d-wide 2023-04-28 18:38:07 +00:00
parent 1420ea5662
commit 97750705cd

View file

@ -350,6 +350,7 @@ func (a *AdminSocket) handleRequest(conn net.Conn) {
if resp.Response, err = json.Marshal(res); err != nil {
return fmt.Errorf("Failed to marshal response: %w", err)
}
resp.Request = buf
resp.Status = "success"
return nil
}(); err != nil {