Files
chatmail-core/src
WofWca 823a16e8e9 fix: fetch_url: return err on non 2xx reponses
The main reason for this change is the app picker
that Delta Chat clients use, which utilizes
the `fetch_url` function.
Sometimes we get an error from the server,
but we have no way to figure out that it's an error,
other than inspecting the body, which we don't (and shouldn't) do.
This results in us attempting to send webxdc apps
that are not even valid .zip files.

Another, arguably even worse thing is that
we also put the error responses to the cache,
so it's not easy to recover from such an error.

So, let's just return an error if the response code
is not a successful response code.
2025-06-04 23:28:17 +00:00
..
2025-04-24 18:44:23 +00:00
2025-03-06 20:30:17 +01:00
2025-05-29 13:06:18 +00:00
2025-02-26 22:03:08 +01:00
2025-03-29 15:10:57 +00:00
2025-05-20 14:09:07 +00:00
2025-05-20 14:09:07 +00:00
2025-04-06 07:42:08 +00:00
2025-05-29 13:06:18 +00:00
2025-05-19 08:25:05 +00:00
2025-05-29 13:06:18 +00:00
2025-05-29 13:06:18 +00:00
2025-01-21 19:42:19 +01:00
2024-11-27 23:57:23 +00:00
2024-12-02 19:22:45 +00:00
2024-09-13 17:58:25 +00:00
2025-05-29 13:06:18 +00:00
2025-05-29 13:06:18 +00:00
2025-04-06 07:42:08 +00:00
2025-05-19 08:25:05 +00:00
2025-02-27 16:56:55 +00:00
2025-05-20 14:09:07 +00:00