1
0
Fork 0
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:
Steffen Vogel 2017-03-20 09:08:10 -03:00
parent 326b61fa59
commit 0c5204ccc3

View file

@ -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;
}