diff --git a/admin/admin-service/src/main/java/io/mosip/admin/packetstatusupdater/service/impl/AuditManagerProxyServiceImpl.java b/admin/admin-service/src/main/java/io/mosip/admin/packetstatusupdater/service/impl/AuditManagerProxyServiceImpl.java index 2d4e6850e95..485584dd675 100644 --- a/admin/admin-service/src/main/java/io/mosip/admin/packetstatusupdater/service/impl/AuditManagerProxyServiceImpl.java +++ b/admin/admin-service/src/main/java/io/mosip/admin/packetstatusupdater/service/impl/AuditManagerProxyServiceImpl.java @@ -112,18 +112,16 @@ public AuditManagerResponseDto logAdminAudit(AuditManagerRequestDto auditManager auditManagerRequestDto.setSessionUserName(username); auditManagerRequestDto.setCreatedBy(getHeaderValue(HttpHeaders.REFERER)); - HttpHeaders auditReqHeaders = new HttpHeaders(); - auditReqHeaders.setAccept(Arrays.asList(MediaType.APPLICATION_JSON)); RequestWrapper request = new RequestWrapper<>(); request.setId("mosip.admin.audit"); request.setVersion("0.1"); request.setRequesttime(LocalDateTime.now()); request.setRequest(auditManagerRequestDto); - HttpEntity> entity = new HttpEntity<>(request, auditReqHeaders); + HttpEntity> entity = new HttpEntity<>(request); try { - restTemplate.postForEntity(auditmanagerapi, entity, Object.class); + restTemplate.postForEntity(auditmanagerapi, entity, String.class); } catch (HttpClientErrorException | HttpServerErrorException ex) { throw new MasterDataServiceException(AdminManagerProxyErrorCode.ADMIN_LOG_FAILED.getErrorCode(), AdminManagerProxyErrorCode.ADMIN_LOG_FAILED.getErrorMessage(), ex);