refactor(opds): mark user-agent parameter as optional

This commit is contained in:
Gauthier Roebroeck 2020-04-10 20:45:28 +08:00
parent e5a084144d
commit 87aa0bc032

View file

@ -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 ->