Skip to content
This repository was archived by the owner on Oct 10, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ lazy val scalaDependencies = Seq(
"org.scala-lang.modules" %% "scala-collection-compat" % "2.6.0"
)

ThisBuild / scapegoatVersion := "1.4.11"
ThisBuild / scapegoatVersion := "1.4.12"

lazy val scalacOptions_2_12 = Seq(
"-unchecked",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ class AwsRequestSigner private (credentialsProvider: AwsCredentialsProvider, reg
signedSdkRequest
.headers()
.asScala
.toSeq
.map(h => HttpHeader.parse(h._1, h._2.asScala.head))
.flatMap(header => header._2.asScala.headOption.map(value => HttpHeader.parse(header._1, value)))
.collect { case ParsingResult.Ok(header, _) =>
header
}
Expand All @@ -118,9 +117,7 @@ object AwsRequestSigner extends StrictLogging {

object AwsRequestSignerConfig {
final case class AssumeRole(roleArn: String, roleSessionName: String, awsRegion: String) extends AwsRequestSignerConfig

final case class BasicCredentials(accessKey: String, secretKey: String, awsRegion: String) extends AwsRequestSignerConfig

final case class Instance(awsRegion: String) extends AwsRequestSignerConfig
}

Expand Down