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 encoding issues inside the input field #4

Closed
wants to merge 1 commit into from

Conversation

mschader
Copy link

The current approach to paste the request into the CSTC input field casts the received request object from a byte array to a string. Upon copying it into the UI input field, it expects again a bytes array. This back and forth conversion will try to encode binary blobs leading to malformed requests. As all functions expect to work with byte arrays the cast to a string can be removed to maintain the original requests structure.

The current approach casts the received request object from a byte
array to a string. Upon copying it into the UI input field, it expects
again a bytes array. This back and forth conversion will try to encode
binary blobs leading to malformed requests. As all functions expect
to work with byte arrays the cast to a string can be removed to maintain
the original requests structure
@qtc-de qtc-de mentioned this pull request Mar 18, 2020
@qtc-de
Copy link
Contributor

qtc-de commented Mar 20, 2020

Damn! Sorry @mschader! I did not see this pull request and just implemented your changes (that you previously communicated to me) directly inside of the feat/5-encoding-raw-data branch :(

@qtc-de qtc-de closed this Mar 20, 2020
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.

None yet

2 participants