Fix error when Accept header is specified more than once