diff --git a/src/main/kotlin/dev/usbharu/hideout/application/infrastructure/exposed/PaginationList.kt b/src/main/kotlin/dev/usbharu/hideout/application/infrastructure/exposed/PaginationList.kt index 9bb2239b..011aaaa2 100644 --- a/src/main/kotlin/dev/usbharu/hideout/application/infrastructure/exposed/PaginationList.kt +++ b/src/main/kotlin/dev/usbharu/hideout/application/infrastructure/exposed/PaginationList.kt @@ -8,15 +8,15 @@ fun PaginationList.toHttpHeader( ): String? { val mutableListOf = mutableListOf() if (next != null) { - mutableListOf.add("<${nextBlock(nextBlock.toString())}>; rel=\"next\";") + mutableListOf.add("<${nextBlock(this.next.toString())}>; rel=\"next\"") } if (prev != null) { - mutableListOf.add("<${prevBlock(prevBlock.toString())}>; rel=\"prev\";") + mutableListOf.add("<${prevBlock(this.prev.toString())}>; rel=\"prev\"") } if (mutableListOf.isEmpty()) { return null } - return mutableListOf.joinToString(",") + return mutableListOf.joinToString(", ") }