mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
ResourceUtils.useCachesIfNecessary() not correct handle JNLP connections
Issue: SPR-9547
This commit is contained in:
@@ -336,7 +336,7 @@ public abstract class ResourceUtils {
|
||||
* @param con the URLConnection to set the flag on
|
||||
*/
|
||||
public static void useCachesIfNecessary(URLConnection con) {
|
||||
con.setUseCaches(con.getClass().getName().startsWith("JNLP"));
|
||||
con.setUseCaches(con.getClass().getSimpleName().startsWith("JNLP"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user