Fix memory leak, handle cookie header according to the spec
Multimap not fully implemented