From c4092896756fa3deef41afd04fd0c710a0332fe6 Mon Sep 17 00:00:00 2001 From: Alexey-Verkhovsky Date: Mon, 29 Nov 2021 20:26:23 +0300 Subject: [PATCH] Change query parameter name --- .../android/fpjs_pro/kotlin_client/FetchVisitorIdRequest.kt | 5 ++--- .../android/fpjs_pro/kotlin_client/http_client/HttpClient.kt | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fpjs-pro/src/main/java/com/fingerprintjs/android/fpjs_pro/kotlin_client/FetchVisitorIdRequest.kt b/fpjs-pro/src/main/java/com/fingerprintjs/android/fpjs_pro/kotlin_client/FetchVisitorIdRequest.kt index 4bb1ca9..2abed4d 100644 --- a/fpjs-pro/src/main/java/com/fingerprintjs/android/fpjs_pro/kotlin_client/FetchVisitorIdRequest.kt +++ b/fpjs-pro/src/main/java/com/fingerprintjs/android/fpjs_pro/kotlin_client/FetchVisitorIdRequest.kt @@ -50,11 +50,11 @@ class FetchVisitorIdRequest( private val mediaDrmId: String?, private val s67: String, private val tag: Map, - private val version: String, + version: String, private val packageName: String ) : Request { - override val url = "$endpointUrl/?ct=android/1.2.0" + override val url = "$endpointUrl/?ci=android/$version" override val type = RequestType.POST override val headers = mapOf( "Content-Type" to "application/json" @@ -128,5 +128,4 @@ private const val GSF_ID_KEY = "a3" private const val S67_KEY = "s67" private const val DEVICE_ID_KEY = "deviceId" private const val TYPE_KEY = "type" -private const val VERSION_KEY = "version" private const val REQUEST_ID_KEY = "requestId" \ No newline at end of file diff --git a/fpjs-pro/src/main/java/com/fingerprintjs/android/fpjs_pro/kotlin_client/http_client/HttpClient.kt b/fpjs-pro/src/main/java/com/fingerprintjs/android/fpjs_pro/kotlin_client/http_client/HttpClient.kt index d94e207..80f3c85 100644 --- a/fpjs-pro/src/main/java/com/fingerprintjs/android/fpjs_pro/kotlin_client/http_client/HttpClient.kt +++ b/fpjs-pro/src/main/java/com/fingerprintjs/android/fpjs_pro/kotlin_client/http_client/HttpClient.kt @@ -35,7 +35,9 @@ class NativeHttpClient( try { with(mURL.openConnection() as HttpsURLConnection) { + logger.debug(this, "Headers:$") request.headers.keys.forEach { + logger.debug(this, "$it ${request.headers[it]}") setRequestProperty(it, request.headers[it]) }