Strange behaviour of Uri.dataFromBytes() constructor for different MIME types #28592
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
core-a
library-core
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Why empty, null and "text/plain" MIME types are treated as "text/plain" but not added to the path component of Uri? Why empty and null mimeType are not treated as invalid ones?
Please also add an expected behaviour for different MIME types to the Uri.dataFromBytes() documentation at https://api.dartlang.org/stable/1.21.1/dart-core/Uri/Uri.dataFromBytes.html
The text was updated successfully, but these errors were encountered: