ollama/server/internal
Michael Yang 214a7678ea fix superfluous call to WriteHeader
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)
2025-04-25 16:58:49 -07:00
..
cache/blob server/internal/chunks: remove chunks package (#9755) 2025-03-14 08:57:59 -07:00
client/ollama server/internal/client/ollama: handle some network errors gracefully (#10317) 2025-04-17 12:43:09 -07:00
cmd/opp server/internal/chunks: remove chunks package (#9755) 2025-03-14 08:57:59 -07:00
internal server/.../backoff,syncs: don't break builds without synctest (#9484) 2025-03-03 16:45:40 -08:00
manifest server/internal: copy bmizerany/ollama-go to internal package (#9294) 2025-02-24 22:39:44 -08:00
registry fix superfluous call to WriteHeader 2025-04-25 16:58:49 -07:00
testutil server/internal: replace model delete API with new registry handler. (#9347) 2025-02-27 12:04:53 -08:00