mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 07:27:43 +00:00
write header before body
This commit is contained in:
parent
e746edfdb9
commit
d4fad82264
1 changed files with 1 additions and 1 deletions
|
@ -27,6 +27,6 @@ const receiptResponse = `{
|
|||
}`
|
||||
|
||||
func (a *api) checkReceiptHandler(w http.ResponseWriter, r *http.Request) {
|
||||
w.Write([]byte(receiptResponse))
|
||||
w.WriteHeader(http.StatusOK)
|
||||
w.Write([]byte(receiptResponse))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue