Skip to content

Commit

Permalink
Address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
KiKoS0 committed Sep 13, 2024
1 parent c2804ef commit 1822df5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ private HttpHeaders getHeaders() {
@GetMapping
public ResponseEntity<String> index(
@RequestHeader(HttpHeaders.HOST) String hostHeader,
HttpServletRequest request,
@RequestHeader(name = "X-Inngest-Signature", required = false) String signature,
@RequestHeader(name = "X-Inngest-Server-Kind", required = false) String serverKind
) {
Expand Down
2 changes: 2 additions & 0 deletions inngest-spring-boot-demo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ tasks.withType<Test> {
systemProperty("junit.jupiter.execution.parallel.enabled", true)
systemProperty("test-group", "unit-test")

// Required by `system-stubs-jupiter` for JDK 21+ compatibility
// https://github.com/raphw/byte-buddy/issues/1396
jvmArgs = listOf("-Dnet.bytebuddy.experimental=true")
testLogging {
events =
Expand Down
8 changes: 7 additions & 1 deletion inngest/src/main/kotlin/com/inngest/ServeConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ class ServeConfig
}
}

fun hasSigningKey() = signingKey() !in listOf(DUMMY_SIGNING_KEY, "")
fun hasSigningKey() {
when (signingKey()) {
DUMMY_SIGNING_KEY -> false
"" -> false
else -> true
}
}

fun baseUrl(): String {
if (baseUrl != null) return baseUrl
Expand Down

0 comments on commit 1822df5

Please sign in to comment.