| 7052 | } |
| 7053 | |
| 7054 | static const char *cli_download_protocol(const char *url) { |
| 7055 | if (url && strncmp(url, "https://", 8) == 0) { |
| 7056 | return "=https"; |
| 7057 | } |
| 7058 | if (url && strncmp(url, "file://", 7) == 0 && cli_download_is_explicit_file_override(url)) { |
| 7059 | return "=file"; |
| 7060 | } |
| 7061 | return NULL; |
| 7062 | } |
| 7063 | |
| 7064 | /* Download primitives: update was their only caller. */ |
| 7065 | static int cbm_download_to_file(const char *url, const char *dest) { |
no test coverage detected