Skip to content

Commit

Permalink
fix: getReferer 메서드 referer값 null일 경우 Empty String 반환
Browse files Browse the repository at this point in the history
  • Loading branch information
egg528 committed Mar 31, 2024
1 parent faf6b77 commit 6077ae1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ class StateOAuth2AuthorizationRequestRepository(

private fun getState(request: HttpServletRequest): String = request.getParameter("state")

private fun getReferer(request: HttpServletRequest): String = request.getHeader("referer")
private fun getReferer(request: HttpServletRequest): String = request.getHeader("referer") ?: ""
}

0 comments on commit 6077ae1

Please sign in to comment.