瀏覽代碼

Return 404 status for houses not found

This also passes the error back.
master
Matt Baer 6 年之前
父節點
當前提交
5c69d90f1c
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      construction.go

+ 2
- 1
construction.go 查看文件

@@ -236,8 +236,9 @@ func getHouse(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


Loading…
取消
儲存