Skip to content

Commit

Permalink
Corrected the response status for fetchContainerLogs
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Feb 10, 2024
1 parent 1526bf7 commit 5b4b2b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blockchain/blox.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ func (bl *FxBlockchain) handleFetchContainerLogs(ctx context.Context, from peer.
}
}
log.Debugw("handleFetchContainerLogs response", "out", out)
w.WriteHeader(http.StatusOK)
w.WriteHeader(http.StatusAccepted)
if err := json.NewEncoder(w).Encode(out); err != nil {
log.Error("failed to write response: %v", err)
http.Error(w, "failed to write response", http.StatusInternalServerError)
Expand Down

0 comments on commit 5b4b2b3

Please sign in to comment.