-
-
Notifications
You must be signed in to change notification settings - Fork 273
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
Add Cookie to dict #231
Add Cookie to dict #231
Conversation
Actually, you can do this:
|
Yes, it's optional, and I thought it would be more convenient to add it, since the requests library has this function as well |
OK, it makes sense to me. |
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.
Also add a simple unittest for this function.
Co-authored-by: Yifei Kong <[email protected]>
Co-authored-by: Yifei Kong <[email protected]>
Is there a unit test template for the project, lend me for reference. |
Sorry, there is no such templates, you can take this as a reference. |
I get the following error when I run the test_cookies.py file |
|
G:\workarea\MyProject\pythonProject\curl_cffi\ffi\shim.h(5): fatal error C1083: �������ļ�: ��curl/curl.h��: No such file or directory |
|
I can't compile the project, can't find curl/curl.h, switching to v0.6.0b9 version the problem still exists, can you compile the project properly? |
You need to check out the |
path is None or cookie.path == path | ||
): | ||
dictionary[cookie.name] = cookie.value | ||
return dictionary |
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.
I don't really understand the purpose here, may be it's expected, but cookie matching is not working like that. You can check official RFC:
No description provided.