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]) }