ollama/server/internal/registry
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
..
testdata server/internal/registry: take over pulls from server package (#9485) 2025-03-05 14:48:18 -08:00
server.go fix superfluous call to WriteHeader 2025-04-25 16:58:49 -07:00
server_test.go server/internal/registry: make pull send errors with Error field (#10326) 2025-04-18 18:12:28 -07:00