fixed the post request type