mirror of
https://github.com/gotson/komga.git
synced 2025-12-06 08:32:25 +01:00
fix: exception if user agent is null
This commit is contained in:
parent
1f504f4a7d
commit
cb07581daa
1 changed files with 1 additions and 1 deletions
|
|
@ -5,5 +5,5 @@ import org.springframework.security.web.authentication.WebAuthenticationDetails
|
|||
import javax.servlet.http.HttpServletRequest
|
||||
|
||||
class UserAgentWebAuthenticationDetails(request: HttpServletRequest) : WebAuthenticationDetails(request) {
|
||||
val userAgent: String = request.getHeader(HttpHeaders.USER_AGENT)
|
||||
val userAgent: String = request.getHeader(HttpHeaders.USER_AGENT).orEmpty()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue