From ad8d6632a9e1f0e06f09e89ef5f4ace012058a8a Mon Sep 17 00:00:00 2001 From: Edwin Jakobs Date: Fri, 28 Feb 2020 21:03:27 +0100 Subject: [PATCH] Fix jdk 8 compatibility --- orx-glslify/src/main/kotlin/NpmUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orx-glslify/src/main/kotlin/NpmUtils.kt b/orx-glslify/src/main/kotlin/NpmUtils.kt index a9eb20e4..5df91c0c 100644 --- a/orx-glslify/src/main/kotlin/NpmUtils.kt +++ b/orx-glslify/src/main/kotlin/NpmUtils.kt @@ -33,7 +33,7 @@ internal fun getPackageUrl(module: String): String? { val con = url.openConnection() as HttpsURLConnection con.setRequestProperty("Accept", "application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8") - val json = String(con.inputStream.readAllBytes()) + val json = String(con.inputStream.readBytes()) val gson = GsonBuilder().create() val npmResponse = gson.fromJson(json, NPMResponse::class.java)