Skip to content

Add more base64 malformed request tests#905

Merged
JordonPhillips merged 1 commit intosmithy-lang:mainfrom
JordonPhillips:more-base-64
Sep 14, 2021
Merged

Add more base64 malformed request tests#905
JordonPhillips merged 1 commit intosmithy-lang:mainfrom
JordonPhillips:more-base-64

Conversation

@JordonPhillips
Copy link
Copy Markdown
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
Copy link
Copy Markdown
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
Copy Markdown
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