Explorar el Código

Return 404 for stats on nonexistent houses

master
Matt Baer hace 6 años
padre
commit
fd45b2c572
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      construction.go

+ 2
- 1
construction.go Ver fichero

@@ -284,8 +284,9 @@ func viewHouseStats(app *app, w http.ResponseWriter, r *http.Request) error {
if err != nil {
page = []byte("<!DOCTYPE html><html><body>HTMLlot.</body></html>")
}
w.WriteHeader(http.StatusNotFound)
fmt.Fprintf(w, "%s", page)
return nil
return err
}
}
return err


Cargando…
Cancelar
Guardar