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

accept-headers: Support preference ordering #56

Merged
merged 1 commit into from
May 16, 2024

Conversation

endocrimes
Copy link
Member

@endocrimes endocrimes commented May 15, 2024

Fixes content negotiation for Content Encodings - Namely supports parsing preferences ;q=FLOAT, and resolving across multiple headers. Inspired by #55.

@endocrimes endocrimes force-pushed the dani/content_negotiation branch 2 times, most recently from 15d655c to 0453bf2 Compare May 15, 2024 21:10
src/lib.rs Show resolved Hide resolved
Copy link
Contributor

@itowlson itowlson left a comment

Choose a reason for hiding this comment

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

I had a couple of minor suggestions but nothing blocking. LGTM though it would be great if you could hold off until Joel can comment on the mutex. Thanks!

src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Show resolved Hide resolved
src/lib.rs Show resolved Hide resolved
Copy link
Contributor

@rylev rylev left a comment

Choose a reason for hiding this comment

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

Looks great! I think we should aim to add a spin-test based test as soon as #55, but we don't need to necessarily block merging this PR on that one.

src/lib.rs Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
Signed-off-by: Danielle Lancashire <dani@builds.terrible.systems>
@endocrimes endocrimes merged commit 0e35ba8 into fermyon:main May 16, 2024
2 checks passed
@endocrimes endocrimes deleted the dani/content_negotiation branch May 16, 2024 15:45
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.

4 participants