From 4ba8f585d9b2aa07b5defd7872106876285d427c Mon Sep 17 00:00:00 2001 From: cztomczak Date: Sun, 19 Aug 2018 19:25:49 +0200 Subject: [PATCH] Update network_cookies.py snippet --- examples/snippets/network_cookies.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/snippets/network_cookies.py b/examples/snippets/network_cookies.py index ad1e2c18..55a71ec0 100644 --- a/examples/snippets/network_cookies.py +++ b/examples/snippets/network_cookies.py @@ -30,6 +30,7 @@ def CanGetCookies(self, frame, request, **_): print("-- CanGetCookies #"+str(self.getcount)) print("url="+request.GetUrl()[0:80]) print("") + # Return True to allow reading cookies and False to block return True def CanSetCookie(self, frame, request, cookie, **_): @@ -42,6 +43,7 @@ def CanSetCookie(self, frame, request, cookie, **_): print("Name="+cookie.GetName()) print("Value="+cookie.GetValue()) print("") + # Return True to allow setting cookie and False to block return True