Fix typs and add extra clarifications for segment and the http server.
This commit is contained in:
parent
60f6040fe3
commit
4553be4b6d
2 changed files with 3 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ func (s *httpServer) handleProduce(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
res := ProduceResponse{Offset: off}
|
||||
// The header gets overrided if there's an encoding error.
|
||||
// The header gets overwritten if there's an encoding error.
|
||||
w.WriteHeader(http.StatusCreated)
|
||||
err = json.NewEncoder(w).Encode(res)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue