Fix http URLs
See gh-22839
This commit is contained in:
committed by
Stephane Nicoll
parent
b5fba14ab8
commit
fde92793b5
@@ -107,13 +107,13 @@ public class AppCacheManifestTransformerTests {
|
||||
|
||||
assertThat(content).as("not rewrite external resources")
|
||||
.contains("//example.org/style.css")
|
||||
.contains("http://example.org/image.png");
|
||||
.contains("https://example.org/image.png");
|
||||
|
||||
// Not the same hash as Spring MVC
|
||||
// Hash is computed from links, and not from the linked content
|
||||
|
||||
assertThat(content).as("generate fingerprint")
|
||||
.contains("# Hash: 8eefc904df3bd46537fa7bdbbc5ab9fb");
|
||||
.contains("# Hash: d4437f1d7ae9530ab3ae71d5375b46ff");
|
||||
}
|
||||
|
||||
private Resource getResource(String filePath) {
|
||||
|
||||
@@ -97,13 +97,13 @@ public class RedirectViewTests {
|
||||
|
||||
assertThat(view.isRemoteHost("https://url.somewhere.com")).isFalse();
|
||||
assertThat(view.isRemoteHost("/path")).isFalse();
|
||||
assertThat(view.isRemoteHost("http://url.somewhereelse.com")).isFalse();
|
||||
assertThat(view.isRemoteHost("http://somewhereelse.example")).isFalse();
|
||||
|
||||
view.setHosts("url.somewhere.com");
|
||||
|
||||
assertThat(view.isRemoteHost("https://url.somewhere.com")).isFalse();
|
||||
assertThat(view.isRemoteHost("/path")).isFalse();
|
||||
assertThat(view.isRemoteHost("http://url.somewhereelse.com")).isTrue();
|
||||
assertThat(view.isRemoteHost("http://somewhereelse.example")).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -11,7 +11,7 @@ NETWORK:
|
||||
|
||||
CACHE:
|
||||
js/bar.js
|
||||
http://example.org/image.png
|
||||
https://example.org/image.png
|
||||
|
||||
FALLBACK:
|
||||
/main /static.html
|
||||
Reference in New Issue
Block a user