Fix BasicConnector.putCookies