feat: support byte range
This commit is contained in:
parent
6555cdb23a
commit
6c7774159f
5
main.go
5
main.go
|
@ -35,7 +35,10 @@ func serve(port int) (*fiber.App, <-chan error) {
|
||||||
RequestMethods: []string{"GET", "HEAD"},
|
RequestMethods: []string{"GET", "HEAD"},
|
||||||
ServerHeader: "StaticFileServer",
|
ServerHeader: "StaticFileServer",
|
||||||
})
|
})
|
||||||
app.Static("/", "./", fiber.Static{Browse: true})
|
app.Static("/", "./", fiber.Static{
|
||||||
|
Browse: true,
|
||||||
|
ByteRange: true,
|
||||||
|
})
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
defer close(ch)
|
defer close(ch)
|
||||||
|
|
Loading…
Reference in New Issue