I'm pretty sure browsers can interpret binary payloads (images and other media) in the response body correctly by themselves.
However this still leaves the issue of differentiating between images and video.
Images can be handled by the image crate. Not sure about video.
I'm pretty sure browsers can interpret binary payloads (images and other media) in the response body correctly by themselves.
However this still leaves the issue of differentiating between images and video.
Images can be handled by the `image` crate. Not sure about video.
The server returns a bad MIME type for images at, for instance, urls
https://hostname.tld/0/img
, therefore browsers do not display them properly.I'm pretty sure browsers can interpret binary payloads (images and other media) in the response body correctly by themselves.
However this still leaves the issue of differentiating between images and video.
Images can be handled by the
image
crate. Not sure about video.