Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
Changes for RC3
Browse files Browse the repository at this point in the history
  • Loading branch information
serebit committed May 8, 2021
1 parent 8a10bbb commit 80e3bae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
}

group = "io.streamcord"
version = "1.0.0-RC2"
version = "1.0.0-RC3"

repositories {
mavenCentral()
Expand All @@ -23,7 +23,7 @@ dependencies {
implementation(kotlin("reflect")) // for explicit v1.5

// Serialization
implementation("org.jetbrains.kotlinx", "kotlinx-serialization-json", "1.2.0")
implementation("org.jetbrains.kotlinx", "kotlinx-serialization-json", "1.1.0")
implementation("com.charleskorn.kaml", "kaml", "0.31.0")

// DB
Expand Down
4 changes: 1 addition & 3 deletions src/main/kotlin/TwitchServer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ private fun PipelineContext<Unit, ApplicationCall>.verifyRequest(
val actualSignatureHeader = call.request.header("Twitch-Eventsub-Message-Signature")

return if (expectedSignatureHeader != actualSignatureHeader) {
logger.warn("Received request to webhooks/callback that failed verification")
logger.warn("Expected signature header: $expectedSignatureHeader")
logger.warn("Actual signature header: $actualSignatureHeader")
logger.warn("Received request to webhooks/callback that failed verification. Expected signature header: $expectedSignatureHeader. Actual signature header: $actualSignatureHeader")
false
} else true
}
Expand Down

0 comments on commit 80e3bae

Please sign in to comment.