| 8094 | } |
| 8095 | |
| 8096 | static const char *cli_download_protocol(const char *url) { |
| 8097 | if (url && strncmp(url, "https://", 8) == 0) { |
| 8098 | return "=https"; |
| 8099 | } |
| 8100 | if (url && strncmp(url, "file://", 7) == 0 && cli_download_is_explicit_file_override(url)) { |
| 8101 | return "=file"; |
| 8102 | } |
| 8103 | return NULL; |
| 8104 | } |
| 8105 | |
| 8106 | /* Download primitives: update was their only caller. */ |
| 8107 | static int cbm_download_to_file(const char *url, const char *dest) { |
no test coverage detected