Fix bugs; CookieHandlerAdapter ignores Set-Cookie header.