Skip to content

Commit

Permalink
Change query parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-Verkhovsky committed Nov 29, 2021
1 parent f568b57 commit c409289
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ class FetchVisitorIdRequest(
private val mediaDrmId: String?,
private val s67: String,
private val tag: Map<String, Any>,
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"
Expand Down Expand Up @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -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])
}

Expand Down

0 comments on commit c409289

Please sign in to comment.