Skip to content

Commit 5f0a634

Browse files
committed
clean: removes old authorization headers with underscores
1 parent 7cda977 commit 5f0a634

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ orbs:
66
references:
77
circleci_job: &circleci_job
88
docker:
9-
- image: circleci/circleci-cli:0.1.29041
9+
- image: circleci/circleci-cli:0.1.34038
1010
working_directory: ~/workdir
1111

1212
commands:

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)