MCPcopy
hub / github.com/tdewolff/minify / WriteHeader

Method WriteHeader

minify.go:314–317  ·  view source on GitHub ↗

WriteHeader intercepts any header writes and removes the Content-Length header.

(status int)

Source from the content-addressed store, hash-verified

312
313// WriteHeader intercepts any header writes and removes the Content-Length header.
314func (w *responseWriter) WriteHeader(status int) {
315 w.ResponseWriter.Header().Del("Content-Length")
316 w.ResponseWriter.WriteHeader(status)
317}
318
319// Write intercepts any writes to the response writer.
320// The first write will extract the Content-Type as the mediatype. Otherwise it falls back to the RequestURI extension.

Callers

nothing calls this directly

Calls 1

HeaderMethod · 0.80

Tested by

no test coverage detected