Skip to content

Commit b0ace3d

Browse files
authored
exp/api: Bubble up status code from writeResponse (#1823)
Signed-off-by: Saswata Mukherjee <[email protected]>
1 parent c68532c commit b0ace3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exp/api/remote/remote_api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,5 +553,5 @@ func (h *handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
553553
http.Error(w, storeErr.Error(), writeResponse.StatusCode())
554554
return
555555
}
556-
w.WriteHeader(http.StatusNoContent)
556+
w.WriteHeader(writeResponse.StatusCode())
557557
}

0 commit comments

Comments
 (0)