mirror of
https://github.com/gotson/komga.git
synced 2026-01-09 01:14:20 +01:00
refactor(opds): mark user-agent parameter as optional
This commit is contained in:
parent
e5a084144d
commit
87aa0bc032
1 changed files with 1 additions and 1 deletions
|
|
@ -205,7 +205,7 @@ class OpdsController(
|
|||
@GetMapping("series/{id}")
|
||||
fun getOneSeries(
|
||||
@AuthenticationPrincipal principal: KomgaPrincipal,
|
||||
@RequestHeader(HttpHeaders.USER_AGENT) userAgent: String,
|
||||
@RequestHeader(name = HttpHeaders.USER_AGENT, required = false, defaultValue = "") userAgent: String,
|
||||
@PathVariable id: Long
|
||||
): OpdsFeed =
|
||||
seriesRepository.findByIdOrNull(id)?.let { series ->
|
||||
|
|
|
|||
Loading…
Reference in a new issue