this repo has no description smallweb.run
smallweb
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix wrong ordering of write header

pomdtr 4405ac78 42857800

+2 -2
+2 -2
cmd/up.go
··· 374 374 func (me *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { 375 375 appname, redirect, ok := lookupApp(r.Host, k.String("domain"), k.StringMap("customDomains")) 376 376 if !ok { 377 - w.Write([]byte(fmt.Sprintf("No app found for host %s", r.Host))) 378 377 w.WriteHeader(http.StatusNotFound) 378 + w.Write([]byte(fmt.Sprintf("No app found for host %s", r.Host))) 379 379 return 380 380 } 381 381 ··· 394 394 wk, err := me.GetWorker(appname, k.String("dir"), k.String("domain")) 395 395 if err != nil { 396 396 if errors.Is(err, app.ErrAppNotFound) { 397 - w.Write([]byte(fmt.Sprintf("No app found for host %s", r.Host))) 398 397 w.WriteHeader(http.StatusNotFound) 398 + w.Write([]byte(fmt.Sprintf("No app found for host %s", r.Host))) 399 399 return 400 400 } 401 401