mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
advio: non HTTP protocols have return code 0
This commit is contained in:
parent
326b61fa59
commit
0c5204ccc3
1 changed files with 2 additions and 1 deletions
|
@ -175,8 +175,9 @@ int adownload(AFILE *af)
|
|||
case CURLE_OK:
|
||||
curl_easy_getinfo(af->curl, CURLINFO_RESPONSE_CODE, &code);
|
||||
switch (code) {
|
||||
case 404: goto notexist;
|
||||
case 0:
|
||||
case 200: goto exist;
|
||||
case 404: goto notexist;
|
||||
default: return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue