Skip to content

Commit 46206c0

Browse files
author
Dan Skinner
committed
allow non-https usage in url config
1 parent 61a543c commit 46206c0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/browser/features/support/maze-config.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,15 @@ def get_test_url()
1616
maze_address = "#{host}:9339"
1717
end
1818

19+
if Maze.config.https
20+
protocol = 'https'
21+
else
22+
protocol = 'http'
23+
end
24+
1925
UrlGenerator.new(
20-
URI("https://#{maze_address}"),
21-
URI("https://#{maze_address}")
26+
URI("#{protocol}://#{maze_address}"),
27+
URI("#{protocol}://#{maze_address}")
2228
)
2329
end
2430

0 commit comments

Comments
 (0)