Use HTTPS for external links wherever possible
See gh-16316
This commit is contained in:
committed by
Andy Wilkinson
parent
a732acaebf
commit
e401d02ced
@@ -72,7 +72,7 @@ public class ClassPathFileSystemWatcherTests {
|
||||
Map<String, Object> properties = new HashMap<String, Object>();
|
||||
File folder = this.temp.newFolder();
|
||||
List<URL> urls = new ArrayList<URL>();
|
||||
urls.add(new URL("http://spring.io"));
|
||||
urls.add(new URL("https://spring.io"));
|
||||
urls.add(folder.toURI().toURL());
|
||||
properties.put("urls", urls);
|
||||
MapPropertySource propertySource = new MapPropertySource("test", properties);
|
||||
|
||||
@@ -61,7 +61,7 @@ public class ChangeableUrlsTests {
|
||||
|
||||
@Test
|
||||
public void httpUrl() throws Exception {
|
||||
URL url = new URL("http://spring.io");
|
||||
URL url = new URL("https://spring.io");
|
||||
assertThat(ChangeableUrls.fromUrls(url).size(), equalTo(0));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user