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

Fix case insensitive relation type comparison for has and get #31

Conversation

csarven
Copy link
Contributor

@csarven csarven commented Feb 21, 2024

Case-insensitive comparison is required as per RFC8288, Sections 2.1.1, 2.1.2 for relation types.

While case insensitive comparison is working as intended for the retrieval shorthand (rel), it was not for lookup (has) or retrieving (get). This PR fixes that and includes the tests.

@csarven csarven force-pushed the fix/case-insensitive-relation-type-comparison branch from b46f148 to 80ff775 Compare February 21, 2024 00:29
@jhermsmeier jhermsmeier merged commit 5048abc into jhermsmeier:master Feb 21, 2024
4 checks passed
@jhermsmeier
Copy link
Owner

Good catch, thanks! Published in [email protected]

@csarven
Copy link
Contributor Author

csarven commented Feb 21, 2024

Thanks for the quick review! I'm glad the minor code I contributed at 3-4 in the morning turned out okay... while I was in a rabbit hole trying to replace the homebaked Link header parser in dokieli :)

@jhermsmeier
Copy link
Owner

Wow, what a massive project! Wasn't aware something like it existed, going to have to play around with it :)

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