Skip to content

Commit

Permalink
Merge pull request #92 from johannesg/use-set-header-instead-of-add
Browse files Browse the repository at this point in the history
Use setHeader() instead of addHeader() to avoid multiple headers being set
  • Loading branch information
wimdeblauwe committed Dec 10, 2023
2 parents 93ed4cd + ea312c8 commit 937cddb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public HxRefreshHeaderAuthenticationEntryPoint() {

@Override
public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) throws IOException, ServletException {
response.addHeader("HX-Refresh", "true");
response.setHeader("HX-Refresh", "true");
forbiddenEntryPoint.commence(request, response, authException);
}
}

0 comments on commit 937cddb

Please sign in to comment.