Added function to parse Accept headers