square / okio

A modern I/O library for Android, Java, and Kotlin Multiplatform.
https://square.github.io/okio/
Apache License 2.0
8.72k stars 1.17k forks source link

Prevent caching URLConnection files in ResourceFileSystem #1428

Closed pablobaxter closed 4 months ago

pablobaxter commented 4 months ago

This fix is for #1364. It prevents the issue where ClassLoader.getResourceAsStream() caches an open file due to URLConnection.openStream() works. More details in https://github.com/square/okio/issues/1364#issuecomment-1758260314.