corrected bug related to request header in api