using capacitor 6.2, deploying via xcode to ios device.
A simple fetch for a local resource such as
fetch("/public/C4.mp3", { method: "GET" });
produces a result with http status 0 instead of 200. The fetch succeeds, as I can get the full data stream, but the incorrect status code is a problem when a library is doing the fetching.
renaming the file to extension “.mpthree” addresses the issue.
What’s special about mp3?
What other types will have this issue?
Is (isn’t?) it a bug to produce http result code zero?