Fix handling of multiple cookie headers