feat: optimize mime type

This commit is contained in:
2026-02-15 18:49:22 +01:00
parent f85afce949
commit df0bf9bed7
6 changed files with 103 additions and 2 deletions

View File

@@ -6,12 +6,18 @@ import (
"net"
"time"
"github.com/pkg/profile"
"tilok.dev/go-http-server/config"
rh "tilok.dev/go-http-server/response_helper"
)
func main() {
conf := config.GetConfig()
if conf.Profile {
defer profile.Start().Stop()
}
listener, err := net.Listen("tcp", conf.NetInterface)
if err != nil {
slog.Error("Could not create listener", "err", err.Error())