Skip to content

[Fix] Remove redundant cookies serialization from ProxyMixin#111

Merged
ad-m merged 1 commit intomasterfrom
fix/remove-redundant-cookies-from-proxy-mixin
Mar 7, 2026
Merged

[Fix] Remove redundant cookies serialization from ProxyMixin#111
ad-m merged 1 commit intomasterfrom
fix/remove-redundant-cookies-from-proxy-mixin

Conversation

@ad-m
Copy link
Owner

@ad-m ad-m commented Mar 7, 2026

Summary

  • Removed self.cookies reference from ProxyMixin.serialize which would crash if ProxyMixin were used without CookieMixin in the MRO
  • The cookies block was redundant anyway — CookieMixin.serialize already handles cookies serialization via the cooperative MRO chain

Test plan

  • Verify existing tests pass (no behavior change for classes that compose both ProxyMixin and CookieMixin)
  • Confirm cookies are still serialized correctly in classes like NoCaptchaTask, FunCaptchaTask, HCaptchaTask

🤖 Generated with Claude Code

ProxyMixin.serialize referenced self.cookies but ProxyMixin doesn't
define it — relying on CookieMixin being in the MRO. This would crash
if ProxyMixin were composed without CookieMixin. The block was also
redundant since CookieMixin.serialize already handles cookies.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ad-m ad-m merged commit 8c34a09 into master Mar 7, 2026
0 of 8 checks passed
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.

1 participant