Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 5a0901d

Browse files
author
Tyler Smith
committed
TWEAK: Return a JSON response from POSTShutdown to match other endponts.
1 parent 5bffb0b commit 5a0901d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/jsonapi.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,7 @@ func (i *jsonAPIHandler) POSTShutdown(w http.ResponseWriter, r *http.Request) {
11991199
os.Exit(1)
12001200
}
12011201
go shutdown()
1202+
fmt.Fprint(w, `{}`)
12021203
return
12031204
}
12041205

0 commit comments

Comments
 (0)