diff options
| author | xengineering <me@xengineering.eu> | 2024-02-15 20:18:19 +0100 | 
|---|---|---|
| committer | xengineering <me@xengineering.eu> | 2024-02-15 20:18:19 +0100 | 
| commit | bfd936ab717c6d4e4e50bbd0f797c3d1fc7eda42 (patch) | |
| tree | c68edff3405c750d9f6040494ce6edc9dd9f54c8 /main.go | |
| parent | 75c594b778c5c6d51883a45da735a67761952470 (diff) | |
| download | ceres-bfd936ab717c6d4e4e50bbd0f797c3d1fc7eda42.tar ceres-bfd936ab717c6d4e4e50bbd0f797c3d1fc7eda42.tar.zst ceres-bfd936ab717c6d4e4e50bbd0f797c3d1fc7eda42.zip | |
view: Add HTTP 204 handler for /favicon.ico
Otherwise e.g. the Firefox browser throws an error on the console.
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 1 | 
1 files changed, 1 insertions, 0 deletions
| @@ -45,6 +45,7 @@ func startServer(addr string) *http.Server {  		Handler(http.StripPrefix("/static/", http.FileServer(http.FS(static))))  	r.HandleFunc("/recipes", view.Recipes).Methods(`GET`)  	r.HandleFunc("/recipe/{id:[0-9]+}", view.Recipe).Methods(`GET`) +	r.HandleFunc("/favicon.ico", view.Favicon).Methods(`GET`)  	r.HandleFunc("/", view.Index).Methods(`GET`)  	muxer := http.NewServeMux() | 
