Skip to content

Commit

Permalink
Update network_cookies.py snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
cztomczak committed Aug 19, 2018
1 parent 1f8693b commit 4ba8f58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/snippets/network_cookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, **_):
Expand All @@ -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


Expand Down

0 comments on commit 4ba8f58

Please sign in to comment.