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

Deepcopy only headers in validator #1710

Merged
merged 1 commit into from
Jun 11, 2023
Merged

Conversation

RobbeSneyders
Copy link
Member

Fixes the failing pipeline.

I don't understand the underlying issue completely, but It's related to this code added in starlette 0.28. This makes the scope unpicklable in some cases, leading to an error when trying to deepcopy it.

I replaced the deepcopy of the whole scope with just a deepcopy of the headers, since this is the only part we're chaning.

@RobbeSneyders RobbeSneyders requested a review from Ruwann June 7, 2023 22:20
Copy link
Member

@Ruwann Ruwann left a comment

Choose a reason for hiding this comment

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

Thanks!

@Ruwann Ruwann merged commit 55f3c59 into main Jun 11, 2023
7 checks passed
@Ruwann Ruwann deleted the bugfix/starlette-0.28-pickle branch June 11, 2023 09:01
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.

None yet

2 participants