From 6c7774159f6b06959d164d5a62af4823b942bf27 Mon Sep 17 00:00:00 2001 From: Yiyang Kang Date: Wed, 12 Apr 2023 02:22:32 +0800 Subject: [PATCH] feat: support byte range --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index fc79c93..a4168e2 100644 --- a/main.go +++ b/main.go @@ -35,7 +35,10 @@ func serve(port int) (*fiber.App, <-chan error) { RequestMethods: []string{"GET", "HEAD"}, ServerHeader: "StaticFileServer", }) - app.Static("/", "./", fiber.Static{Browse: true}) + app.Static("/", "./", fiber.Static{ + Browse: true, + ByteRange: true, + }) go func() { defer close(ch)