add more media types for OPDS to avoid HTTP 406 errors

This commit is contained in:
Gauthier Roebroeck 2019-09-11 17:39:47 +08:00
parent ce9478023c
commit e019e0e7d2

View file

@ -42,7 +42,7 @@ private const val ID_SERIES_ALL = "allSeries"
private const val ID_SERIES_LATEST = "latestSeries"
@RestController
@RequestMapping(value = [ROUTE_BASE], produces = [MediaType.TEXT_XML_VALUE])
@RequestMapping(value = [ROUTE_BASE], produces = [MediaType.APPLICATION_ATOM_XML_VALUE, MediaType.APPLICATION_XML_VALUE, MediaType.TEXT_XML_VALUE])
class OpdsController(
private val serieRepository: SerieRepository
) {