| 7888 | } |
| 7889 | |
| 7890 | static const char *cli_download_protocol(const char *url) { |
| 7891 | if (url && strncmp(url, "https://", 8) == 0) { |
| 7892 | return "=https"; |
| 7893 | } |
| 7894 | if (url && strncmp(url, "file://", 7) == 0 && cli_download_is_explicit_file_override(url)) { |
| 7895 | return "=file"; |
| 7896 | } |
| 7897 | return NULL; |
| 7898 | } |
| 7899 | |
| 7900 | /* Download primitives: update was their only caller. */ |
| 7901 | static int cbm_download_to_file(const char *url, const char *dest) { |
no test coverage detected