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

Cookies: Cast primitive types to str #5253

Merged
merged 5 commits into from
Oct 6, 2021
Merged

Cookies: Cast primitive types to str #5253

merged 5 commits into from
Oct 6, 2021

Conversation

Laerte
Copy link
Member

@Laerte Laerte commented Oct 1, 2021

This fix #5252 issue. Basically we cast to string all primitive types.

@elacuesta
Copy link
Member

This looks good in principle. Could you add some tests to make sure it works as expected? Thanks!

@codecov
Copy link

codecov bot commented Oct 1, 2021

Codecov Report

Merging #5253 (0974123) into master (214525c) will not change coverage.
The diff coverage is 100.00%.

❗ Current head 0974123 differs from pull request most recent head 4461739. Consider uploading reports for the commit 4461739 to get more accurate results

@@           Coverage Diff           @@
##           master    #5253   +/-   ##
=======================================
  Coverage   88.52%   88.52%           
=======================================
  Files         163      163           
  Lines       10606    10606           
  Branches     1557     1557           
=======================================
  Hits         9389     9389           
  Misses        942      942           
  Partials      275      275           
Impacted Files Coverage Δ
scrapy/downloadermiddlewares/cookies.py 97.40% <100.00%> (ø)

Copy link
Member

@Gallaecio Gallaecio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@elacuesta elacuesta merged commit 6c858ce into scrapy:master Oct 6, 2021
@Laerte Laerte deleted the fix/cast-primitive-types-to-str branch October 6, 2021 15:36
@Laerte Laerte changed the title Cast primitive types to str Cookies: Cast primitive types to str Oct 6, 2021
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.

ints in Cookies are not getting parsed correctly
3 participants