package contented import ( "html" "net/http" "strconv" ) func (this *Server) handleHomepage(w http.ResponseWriter) { extraText := "" if this.opts.MaxUploadBytes > 0 { extraText = " (max " + strconv.Itoa(int(this.opts.MaxUploadBytes/(1024*1024))) + " MiB)" } w.Header().Set(`Content-Type`, `text/html;charset=UTF-8`) w.WriteHeader(200) w.Write([]byte(` ` + html.EscapeString(this.opts.AppTitle) + `


Classic uploader
`)) }