Fix to cookie parsing algorithm in RequestHeaders

The cookie parsing algorithm in the `RequestHeaders` class does not correctly handle more than one cookie.