fix cookiesFromUrl method bug.

Signed-off-by: tapir.dream <tapir.dream@gmail.com>