[core] fix issue with response headers