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

can not send binary in Uint8Array #12

Open
codati opened this issue May 30, 2022 · 1 comment
Open

can not send binary in Uint8Array #12

codati opened this issue May 30, 2022 · 1 comment

Comments

@codati
Copy link

codati commented May 30, 2022

hello,
I can't send binary, in any case, I don't have the same behavior as the default parser
default converts server-side binary data to a buffer

test.zip

with the default passer I have

{
   id: <Buffer 5e 36 f1 2a 35 63 31 37 d4 62 74 ea 55 7b 27 76 39 c6 d9 e4 0d 4c 5e df d6 22 67 12 47 34 4a bf 26>
}

with yours:

{
   id: {
     '0': 253,
     '1': 109,
     '2': 246,
     '3': 228,
     '4': 86,
     '5': 211,
     '6': 4,
     '7': 78,
     '8': 145,
     '9': 176,
     '10': 90,
     '11': 92,
     '12': 35,
     '13': 81,
     '14': 85,
     '15': 238,
     '16': 227,
     '17': 137,
     '18': 125,
     '19': 101,
     '20': 59,
     '21': 220,
     '22': 93,
     '23': 249,
     '24': 63,
     '25': 188,
     '26': 91,
     '27': 184,
     '28': 134,
     '29': 43,
     '30': 7,
     '31': 82,
     '32': 132
   }
}
@codati codati changed the title can not send binary can not send binary in Uint8Array May 30, 2022
@codati
Copy link
Author

codati commented May 30, 2022

I made .buffer on the Uint8Array object
it works
but, it would be nice to have the same behavior as the default parser on this

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

No branches or pull requests

1 participant