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 4f9b4b9
Show file tree
Hide file tree
Showing 2 changed files with 7 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
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 4f9b4b9

Please sign in to comment.