boot.img: more compression options

This commit is contained in:
Mikaël Cluseau
2018-11-15 18:07:10 +11:00
parent 12ade36fd1
commit 7f331cb9c6
3 changed files with 29 additions and 3 deletions

View File

@ -46,6 +46,7 @@ func renderStaticPods(w http.ResponseWriter, r *http.Request, ctx *renderContext
return nil
}
// TODO move somewhere logical
func renderCtx(w http.ResponseWriter, r *http.Request, ctx *renderContext, what string,
create func(out io.Writer, ctx *renderContext) error) error {
log.Printf("sending %s for %q", what, ctx.Host.Name)