Keeping track of set headers and bugfixes for Cookies.