|
|
|
@ -599,15 +599,15 @@ static int getfile(const char *srcfile, const char *destfile, const char *hostna |
|
|
|
|
buffer[i] = 0; |
|
|
|
|
|
|
|
|
|
/* check whether the resource actually existed or not */ |
|
|
|
|
if((strstr(buffer, "HTTP/1.1 404")) != NULL || (strstr(buffer, "HTTP/1.1 404")) != NULL) {
|
|
|
|
|
if((strstr(buffer, "HTTP/1.1 404")) != NULL || (strstr(buffer, "HTTP/1.0 404")) != NULL) {
|
|
|
|
|
logg("^getfile: %s not found on remote server (IP: %s)\n", srcfile, ipaddr); |
|
|
|
|
/* mirman_update(mdat->currip, mdat, 1); */ |
|
|
|
|
closesocket(sd); |
|
|
|
|
return 58; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(!strstr(buffer, "HTTP/1.1 200") && !strstr(buffer, "HTTP/1.1 200") && |
|
|
|
|
!strstr(buffer, "HTTP/1.1 206") && !strstr(buffer, "HTTP/1.1 206")) { |
|
|
|
|
if(!strstr(buffer, "HTTP/1.1 200") && !strstr(buffer, "HTTP/1.0 200") && |
|
|
|
|
!strstr(buffer, "HTTP/1.1 206") && !strstr(buffer, "HTTP/1.0 206")) { |
|
|
|
|
logg("!getfile: Unknown response from remote server (IP: %s)\n", ipaddr); |
|
|
|
|
mirman_update(mdat->currip, mdat, 1); |
|
|
|
|
closesocket(sd); |
|
|
|
|