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"},
 | 
			
		||||
		ServerHeader:          "StaticFileServer",
 | 
			
		||||
	})
 | 
			
		||||
	app.Static("/", "./", fiber.Static{Browse: true})
 | 
			
		||||
	app.Static("/", "./", fiber.Static{
 | 
			
		||||
		Browse:    true,
 | 
			
		||||
		ByteRange: true,
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	go func() {
 | 
			
		||||
		defer close(ch)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue