mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 02:16:36 +02:00
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) |
||
---|---|---|
.. | ||
cache/blob | ||
client/ollama | ||
cmd/opp | ||
internal | ||
manifest | ||
registry | ||
testutil |