-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cookie filter #799
Closed
Closed
Cookie filter #799
Changes from 2 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
e84757a
Implemented simple sending cookie domain filter
panda73111 67f278d
Added tests for simple sending cookie domain filter
panda73111 eb8ff5c
Fixed flake8 errors
panda73111 1def5b0
Using ipaddress module to determine if a netloc is an IP address
panda73111 fbe82c4
Added workaround somewhere else commented "use dict method because Si…
panda73111 4bd4a4e
Fixed errors with ports in URLs by using hostname instead of netloc; …
panda73111 87bad1e
Fixed not accepting cookies from IPs
panda73111 3088e09
Removed impossible condition
panda73111 c7a9efe
Changed an obsolete test, where explicit cookie sharing is now required
panda73111 8720b8e
Added tests for filtering of received cookies
panda73111 f8812d5
Implemented host-only-flag
panda73111 90bb61b
Refactoring; Moved new code over to the new class helpers.SessionCook…
panda73111 7a19859
Split the tests into testing calls to SessionCookieStore and the filt…
panda73111 5d5dd5e
Modified test_cookie_store_usage, now using mock.patch
panda73111 0d3c2be
Renamed SessionCookieStore to CookieJar
panda73111 1d28248
Implemented filtering by secure-flag
panda73111 a648d14
Added test for secure-flag
panda73111 bb559cd
Added rudimentary test for is_ip_address()
panda73111 cdf703f
Implemented filtering by path-attribute
panda73111 1a409ea
Added tests for path-attribute
panda73111 3be84c2
Added test for path-attributes of received cookies
panda73111 4959234
Using TestCase's assertEqual()
panda73111 2d21ff4
Implemented expires- and max-age-attribute
panda73111 2832ea4
Added tests for expires- and max-age-attribute
panda73111 1cfb2c6
Passing the ClientSession's loop through to its CookieJar
panda73111 7917132
Added more tests
panda73111 f8c0e9a
Merge remote-tracking branch 'origin/master' into cookie_filter
panda73111 f6a5da4
Fixed flake8 "Missing whitespace around operator"
panda73111 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ipaddress.IPAddress(netloc)
to support both IPv4 and IPv6 in the right way without regexps (which accepts invalid IPv4 addresses).