From 805d417a9a9ca052cd46cf15576e17f6455eae40 Mon Sep 17 00:00:00 2001 From: ange Date: Tue, 19 Nov 2024 10:16:15 +0000 Subject: [PATCH] fix: dates --- html/resume.html | 4 ++-- main.go | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/html/resume.html b/html/resume.html index 836a7a7..87e62ce 100644 --- a/html/resume.html +++ b/html/resume.html @@ -46,13 +46,13 @@

EXPERIENCE

Freelance - DevOps

- SEPTEMBER 2023 - Today + SEPTEMBER 2023 - TODAY

EPITECH CodingClub association, Toulouse - Cobra

- JANUARY 2021 - TODAY + JANUARY 2021 - JUNE 2024 diff --git a/main.go b/main.go index e5309d1..293565e 100644 --- a/main.go +++ b/main.go @@ -4,7 +4,6 @@ import ( "log" "net/http" "path/filepath" - "strings" ) func html(w http.ResponseWriter, r *http.Request) { @@ -12,7 +11,7 @@ func html(w http.ResponseWriter, r *http.Request) { http.ServeFile(w, r, "/html/style.css") return } - if strings.HasPrefix(r.URL.Path, "/static/") { + if len(r.URL.Path) > len("/static/") && r.URL.Path[:len("/static/")] == "/static/" { http.ServeFile(w, r, r.URL.Path) return }