Skip to content

Commit

Permalink
Relax type restriction on HTTP::Server blockless new method.
Browse files Browse the repository at this point in the history
  • Loading branch information
hugopl committed Apr 5, 2024
1 parent 9babf78 commit 6de179f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/server.cr
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class HTTP::Server
end

# Creates a new HTTP server with the *handlers* array as handler chain.
def self.new(handlers : Array(HTTP::Handler)) : self
def self.new(handlers : Indexable(HTTP::Handler)) : self
new(HTTP::Server.build_middleware(handlers))
end

Expand Down

0 comments on commit 6de179f

Please sign in to comment.