You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior:
Passing an ArrayBuffer to withContent() causes the contentTransformer to convert the body to an empty JSON object ({}).
Expected/desired behavior:
I expected passing an ArrayBuffer to withContent() would send the binary data as a payload. If for some reason ArrayBuffer is not allowed, I expected some sort of error message.
Silently converting it to JSON is super confusing and it took me a while to notice that the payload was not the binary I expected, then to figure out why :-(
I'm submitting a bug report
1.0.4
Current behavior:
Passing an ArrayBuffer to
withContent()
causes thecontentTransformer
to convert the body to an empty JSON object ({}
).Expected/desired behavior:
I expected passing an ArrayBuffer to
withContent()
would send the binary data as a payload. If for some reason ArrayBuffer is not allowed, I expected some sort of error message.Silently converting it to JSON is super confusing and it took me a while to notice that the payload was not the binary I expected, then to figure out why :-(
The guilty code:
https://github.com/aurelia/http-client/blob/master/src/xhr-transformers.js#L90
The text was updated successfully, but these errors were encountered: