ResourceUtils.useCachesIfNecessary() not correct handle JNLP connections

Issue: SPR-9547
master
Juergen Hoeller 12 years ago committed by unknown
parent bd7a6f658a
commit 769753dac4
  1. 2
      spring-core/src/main/java/org/springframework/util/ResourceUtils.java

@ -336,7 +336,7 @@ public abstract class ResourceUtils {
* @param con the URLConnection to set the flag on * @param con the URLConnection to set the flag on
*/ */
public static void useCachesIfNecessary(URLConnection con) { public static void useCachesIfNecessary(URLConnection con) {
con.setUseCaches(con.getClass().getName().startsWith("JNLP")); con.setUseCaches(con.getClass().getSimpleName().startsWith("JNLP"));
} }
} }

Loading…
Cancel
Save