From a1036e153777bac208612f6d254d5823e9317819 Mon Sep 17 00:00:00 2001 From: ds Date: Sun, 12 Jul 2026 18:55:32 +0000 Subject: [PATCH] microblog.go aktualisiert --- microblog.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/microblog.go b/microblog.go index 1a33670..c8dbba6 100644 --- a/microblog.go +++ b/microblog.go @@ -24,11 +24,13 @@ func main() { println("Server startet http://localhost:8085") http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { + println("start HandleFunc") path := r.URL.Path ext := filepath.Ext(path) switch ext { case ".css": + println("css gefunden") w.Header().Set("Content-Type", "text/css") case ".jpg", ".jpeg": w.Header().Set("Content-Type", "image/jpeg") @@ -37,7 +39,7 @@ func main() { case ".gif": w.Header().Set("Content-Type", "image/gif") default: - fmt.Println("rufe handlePage") + println("rufe handlePage") handlePage(w,r) return }