removes slash, sets application/json in header