package response import ( "net/http") // Empty makes a 204 response without a body func Empty(writer http.ResponseWriter) { writer.Header().Set("Content-Type", "text/html; charset=utf-8") writer.WriteHeader(204) writer.Write([]byte{})}
package response
import (
"net/http"
)
// Empty makes a 204 response without a body
func Empty(writer http.ResponseWriter) {
writer.Header().Set("Content-Type", "text/html; charset=utf-8")
writer.WriteHeader(204)
writer.Write([]byte{})
}