Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ class PresignerGenerator : KotlinIntegration {
ccg.render()
}

// Captures protocol-specific state needed for presigning requests
interface PresignConfigFnVisitor {
fun renderHttpMethod(writer: KotlinWriter)
fun renderQueryParameters(writer: KotlinWriter)
Expand Down Expand Up @@ -308,7 +309,7 @@ class PresignerGenerator : KotlinIntegration {
presignConfigFnVisitor.renderQueryParameters(writer)
write("durationSeconds.toLong(),")
write("${presignableOp.signBody},")
write("SigningLocation.HEADER")
write("SigningLocation.QUERY_STRING")
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class PresignerGeneratorTest {
httpRequestBuilder.url.parameters.build(),
durationSeconds.toLong(),
false,
SigningLocation.HEADER
SigningLocation.QUERY_STRING
)
}

Expand Down Expand Up @@ -177,7 +177,7 @@ class PresignerGeneratorTest {
httpRequestBuilder.url.parameters.build(),
durationSeconds.toLong(),
false,
SigningLocation.HEADER
SigningLocation.QUERY_STRING
)
}

Expand Down Expand Up @@ -215,7 +215,7 @@ class PresignerGeneratorTest {
httpRequestBuilder.url.parameters.build(),
durationSeconds.toLong(),
false,
SigningLocation.HEADER
SigningLocation.QUERY_STRING
)
}

Expand Down