fix: ページネーションのHTTPヘッダー変換のURL組み立て部分のバグを修正

This commit is contained in:
usbharu 2024-01-30 14:13:40 +09:00
parent 063692832d
commit ec7c1bdde5
1 changed files with 3 additions and 3 deletions

View File

@ -8,10 +8,10 @@ fun <T, ID> PaginationList<T, ID>.toHttpHeader(
): String? { ): String? {
val mutableListOf = mutableListOf<String>() val mutableListOf = mutableListOf<String>()
if (next != null) { if (next != null) {
mutableListOf.add("<${nextBlock(nextBlock.toString())}>; rel=\"next\";") mutableListOf.add("<${nextBlock(this.next.toString())}>; rel=\"next\"")
} }
if (prev != null) { if (prev != null) {
mutableListOf.add("<${prevBlock(prevBlock.toString())}>; rel=\"prev\";") mutableListOf.add("<${prevBlock(this.prev.toString())}>; rel=\"prev\"")
} }
if (mutableListOf.isEmpty()) { if (mutableListOf.isEmpty()) {