Skip to content

Commit

Permalink
update APP_ID to CoSec-App-Id for Request (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahoo-Wang authored Nov 2, 2023
1 parent 97c6f94 commit c5c8e36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@

package me.ahoo.cosec.api.context.request

import me.ahoo.cosec.api.CoSec
import me.ahoo.cosec.api.context.Attributes

interface Request : Attributes<Request, String, String> {
companion object {
const val APP_ID = "${CoSec.COSEC}-app-id"
const val APP_ID = "CoSec-App-Id"
}

val appId: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ import org.junit.jupiter.api.Test
class RequestTest {
@Test
fun appIdKey() {
assertThat(Request.APP_ID, equalTo("cosec-app-id"))
assertThat(Request.APP_ID, equalTo("CoSec-App-Id"))
}
}

0 comments on commit c5c8e36

Please sign in to comment.