Skip to content

Commit

Permalink
allow non-https usage in url config
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Skinner committed Nov 26, 2024
1 parent 61a543c commit 46206c0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/browser/features/support/maze-config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@ def get_test_url()
maze_address = "#{host}:9339"
end

if Maze.config.https
protocol = 'https'
else
protocol = 'http'
end

UrlGenerator.new(
URI("https://#{maze_address}"),
URI("https://#{maze_address}")
URI("#{protocol}://#{maze_address}"),
URI("#{protocol}://#{maze_address}")
)
end

Expand Down

0 comments on commit 46206c0

Please sign in to comment.