Skip to content
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

Big update to cookie code #836

Merged
merged 5 commits into from
May 27, 2022
Merged

Big update to cookie code #836

merged 5 commits into from
May 27, 2022

Conversation

quinnj
Copy link
Member

@quinnj quinnj commented May 27, 2022

Our cookie code was originally ported from the golang stdlib
implementation and this represents a (slightly overdue) update
from the original source code. The biggest changes are a more
solidified cookiejar implementation that is threadsafe and includes
all the "getcookies!" and "setcookies!" implementations that we
were hand-rolling previously. I also ported over some udpated tests.

All in all, this seems like a great improvement IMO, and I'm going
to go thru open cookie-related issues and make sure we get everything
fixed.

Our cookie code was originally ported from the golang stdlib
implementation and this represents a (slightly overdue) update
from the original source code. The biggest changes are a more
solidified cookiejar implementation that is threadsafe and includes
all the "getcookies!" and "setcookies!" implementations that we
were hand-rolling previously. I also ported over some udpated tests.

All in all, this seems like a great improvement IMO, and I'm going
to go thru open cookie-related issues and make sure we get everything
fixed.
@codecov-commenter
Copy link

codecov-commenter commented May 27, 2022

Codecov Report

Merging #836 (d0a1e77) into master (917fdb8) will decrease coverage by 0.11%.
The diff coverage is 83.27%.

@@            Coverage Diff             @@
##           master     #836      +/-   ##
==========================================
- Coverage   78.48%   78.37%   -0.12%     
==========================================
  Files          36       37       +1     
  Lines        2543     2705     +162     
==========================================
+ Hits         1996     2120     +124     
- Misses        547      585      +38     
Impacted Files Coverage Δ
src/HTTP.jl 83.05% <ø> (ø)
src/cookiejar.jl 77.58% <77.58%> (ø)
src/cookies.jl 93.84% <91.91%> (-1.32%) ⬇️
src/CookieRequest.jl 81.81% <100.00%> (-9.49%) ⬇️
src/Messages.jl 85.13% <100.00%> (+0.99%) ⬆️
src/RedirectRequest.jl 86.00% <0.00%> (+6.00%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants