Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Sija authored Dec 23, 2023
1 parent 09fbc6c commit 05f29fa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/exception_page.cr
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ abstract class ExceptionPage
"all"
end
end
end

def host_from_context(context)
if host = context.request.headers["Host"]?
host = "http://#{host}"
def host_from_context(context)
if host = context.request.headers["Host"]?
host = "http://#{host}"
end
host
end
host
end

include Helpers
Expand Down

0 comments on commit 05f29fa

Please sign in to comment.