Skip to content

Commit cd1b879

Browse files
Merge pull request #541 from codacy/clean/old-header
clean: removes old authorization headers with underscores
2 parents 363152b + 6a2d16a commit cd1b879

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

api-scala/src/main/scala/com/codacy/api/client/CodacyClient.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ class CodacyClient(
2222

2323
private val tokens = Map.empty[String, String] ++
2424
apiToken.map(t => "api-token" -> t) ++
25-
projectToken.map(t => "project-token" -> t) ++
26-
// This is deprecated and is kept for backward compatibility. It will removed in the context of CY-1272
27-
apiToken.map(t => "api_token" -> t) ++
28-
projectToken.map(t => "project_token" -> t)
25+
projectToken.map(t => "project-token" -> t)
2926

3027
private val remoteUrl = new URL(new URL(apiUrl.getOrElse("https://api.codacy.com")), "/2.0").toString()
3128

0 commit comments

Comments
 (0)