mirror of https://gitee.com/namelin2022/ollama
Browse Source
the first call to http.ResponseWriter.Write implicitly calls WriteHeader
with http.StatusOK if it hasn't already been called. once WriteHeader
has been called, subsequent calls has no effect. Write is called when
JSON encoding progressUpdateJSON{}. calls to
http.ResponseWriter.WriteHeader after the first encode is useless and
produces a warning:
http: superfluous response.WriteHeader call from github.com/ollama/ollama/server/internal/registry.(*statusCodeRecorder).WriteHeader (server.go:77)
drifkin/chat-truncation-fix
committed by
Michael Yang
1 changed files with 6 additions and 1 deletions
Loading…
Reference in new issue