| 6903 | } |
| 6904 | |
| 6905 | static const char *cli_download_protocol(const char *url) { |
| 6906 | if (url && strncmp(url, "https://", 8) == 0) { |
| 6907 | return "=https"; |
| 6908 | } |
| 6909 | if (url && strncmp(url, "file://", 7) == 0 && cli_download_is_explicit_file_override(url)) { |
| 6910 | return "=file"; |
| 6911 | } |
| 6912 | return NULL; |
| 6913 | } |
| 6914 | |
| 6915 | /* Download primitives: update was their only caller. */ |
| 6916 | static int cbm_download_to_file(const char *url, const char *dest) { |
no test coverage detected