diff --git a/central-portal/src/main/kotlin/com/vanniktech/maven/publish/portal/SonatypeCentralPortalOkHttpInterceptor.kt b/central-portal/src/main/kotlin/com/vanniktech/maven/publish/portal/SonatypeCentralPortalOkHttpInterceptor.kt index e87ba210..a84bcd24 100644 --- a/central-portal/src/main/kotlin/com/vanniktech/maven/publish/portal/SonatypeCentralPortalOkHttpInterceptor.kt +++ b/central-portal/src/main/kotlin/com/vanniktech/maven/publish/portal/SonatypeCentralPortalOkHttpInterceptor.kt @@ -12,7 +12,7 @@ internal class SonatypeCentralPortalOkHttpInterceptor( val requestBuilder = chain.request().newBuilder() requestBuilder.addHeader("Accept", "application/json") // request json by default, XML is returned else - requestBuilder.addHeader("Authorization", "UserToken $usertoken") + requestBuilder.addHeader("Authorization", "Bearer $usertoken") requestBuilder.addHeader("User-Agent", "$userAgentName/$userAgentVersion") return chain.proceed(requestBuilder.build())