Skip to content

Commit

Permalink
Better server name for rackup / rails.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jun 20, 2024
1 parent 31241cf commit 558cfb1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/falcon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Released under the MIT License.
# Copyright, 2017-2024, by Samuel Williams.

require_relative "falcon/version"
require_relative "falcon/server"

# Falcon, running on Rails, requires specific configuration:
Expand Down
5 changes: 5 additions & 0 deletions lib/falcon/rackup/handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ class Handler
# The default scheme.
SCHEME = "http"

# The name of the handler.
def self.to_s
"Falcon v#{Falcon::VERSION}"
end

# Generate an endpoint for the given `rackup` options.
# @returns [::IO::Endpoint::HostEndpoint]
def self.endpoint_for(**options)
Expand Down

0 comments on commit 558cfb1

Please sign in to comment.