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

Commit 076c40a

Browse files
authored
Merge pull request #278 from OpenBazaar/TS_tweaks
TWEAK: Return a JSON response from POSTShutdown to match other endponts.
2 parents 2469c82 + 5a0901d commit 076c40a

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
@@ -1231,6 +1231,7 @@ func (i *jsonAPIHandler) POSTShutdown(w http.ResponseWriter, r *http.Request) {
12311231
os.Exit(1)
12321232
}
12331233
go shutdown()
1234+
fmt.Fprint(w, `{}`)
12341235
return
12351236
}
12361237

0 commit comments

Comments
 (0)