|
response.setHeader(Constants.CONTENT_TYPE, Constants.APPLICATION_JSON) |
Move the setHeader call to the writeResponse() as that's the only place where we are writing to the servlet response directly.
|
fun <T> writeResponse(response: HttpServletResponse, httpStatus: Int, responseWrapper: ResponseWrapper<T>) { |
WorkoutManager_Program_SpringBoot_Microservice/src/main/kotlin/com/nagpal/shivam/workout/manager/config/JwtAuthenticationHandler.kt
Line 28 in 24d4108
Move the setHeader call to the
writeResponse()as that's the only place where we are writing to the servlet response directly.WorkoutManager_Program_SpringBoot_Microservice/src/main/kotlin/com/nagpal/shivam/workout/manager/config/JwtAuthenticationHandler.kt
Line 55 in 24d4108