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

Add more base64 malformed request tests #905

Merged
merged 1 commit into from
Sep 14, 2021

Conversation

JordonPhillips
Copy link
Contributor

This adds more base64 tests, including ones for strings that use
mediaType in places where they need to be encoded.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Comment on lines +45 to +47
// Invalid characters which are commonly used as filename-safe
// alternatives to + and /
"-_=="
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we want to accept these or not? They're often used for uri-safe and filename-safe encoding. They can also be percent encoded in the uri case.

This also raises the question of whether media-typed strings should be encoded when used in a URI. Percent encoding should be sufficient there, I think.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, percent encoding sounds right to me.

This adds more base64 tests, including ones for strings that use
mediaType in places where they need to be encoded.
@JordonPhillips JordonPhillips merged commit fdf5340 into smithy-lang:main Sep 14, 2021
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