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

feat(core): NanoTDF resource locator protocol bit mask #322

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

pflynn-virtru
Copy link
Member

Refactor the protocol determination logic to use bitwise operations for extracting protocol index. This change simplifies the code by directly using the lower four bits of the protocol to check for HTTP or HTTPS. Additionally, enhanced the error message formatting for better readability.

Issue: opentdf/platform#1203
Specification: opentdf/spec#40
ADR: opentdf/platform#900

Refactor the protocol determination logic to use bitwise operations for extracting protocol index. This change simplifies the code by directly using the lower four bits of the protocol to check for HTTP or HTTPS. Additionally, enhanced the error message formatting for better readability.
Copy link

sonarcloud bot commented Aug 8, 2024

@pflynn-virtru pflynn-virtru marked this pull request as ready for review August 8, 2024 17:57
@pflynn-virtru pflynn-virtru requested a review from a team as a code owner August 8, 2024 17:57
@pflynn-virtru pflynn-virtru merged commit fe0f663 into main Aug 8, 2024
12 checks passed
@pflynn-virtru pflynn-virtru deleted the feature/nano-resource-locator-bit-mask branch August 8, 2024 20:52
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