mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
commit
ac3a7fd47f
1 changed files with 1 additions and 1 deletions
|
@ -1177,7 +1177,7 @@ module Sinatra
|
|||
set(:public_folder, value)
|
||||
end
|
||||
|
||||
private
|
||||
private
|
||||
# Condition for matching host name. Parameter might be String or Regexp.
|
||||
def host_name(pattern)
|
||||
condition { pattern === request.host }
|
||||
|
|
Loading…
Reference in a new issue