258 *path = sstrdup(p).ptr; |
258 *path = sstrdup(p).ptr; |
259 } else { |
259 } else { |
260 repo = calloc(1, sizeof(Repository)); |
260 repo = calloc(1, sizeof(Repository)); |
261 repo->name = strdup(""); |
261 repo->name = strdup(""); |
262 repo->decrypt_content = true; |
262 repo->decrypt_content = true; |
|
263 repo->verification = true; |
263 repo->authmethods = CURLAUTH_BASIC; |
264 repo->authmethods = CURLAUTH_BASIC; |
264 if(url[ulen-1] == '/') { |
265 if(url[ulen-1] == '/') { |
265 repo->url = strdup(url); |
266 repo->url = strdup(url); |
266 *path = strdup("/"); |
267 *path = strdup("/"); |
267 } else if (strchr(url, '/')) { |
268 } else if (strchr(url, '/')) { |