mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Pass array of handlers to HTTP::Server
This commit is contained in:
		
							parent
							
								
									d62aa372b3
								
							
						
					
					
						commit
						a1c8a1b6f1
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -15,7 +15,7 @@ at_exit do | |||
|   handlers << HTTP::LogHandler.new | ||||
|   handlers << HTTP::StaticFileHandler.new("./public") | ||||
|   handlers << $frank_handler | ||||
|   server = HTTP::Server.new(port, HTTP::Server.build_middleware handlers) | ||||
|   server = HTTP::Server.new(port, handlers) | ||||
| 
 | ||||
|   puts "Listening on http://0.0.0.0:#{port}" | ||||
|   server.listen | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue