Dirty version of the equivalent patch from the rrdp-refactor branch.
304 is neither an error nor a redirect. It needs to be handled as a
skip.
pr_val_err("HTTP result code: %ld", http_code);
return handle_http_response_code(http_code);
}
+ if (http_code == 304) {
+ pr_val_debug("Not modified.");
+ return 0;
+ }
if (http_code >= 300) {
/*
* If you're ever forced to implement this, please remember that
http_easy_cleanup(&handler);
file_close(out);
+ if ((*response_code) == 304)
+ goto end;
if (error)
goto delete_dir;
goto delete_dir;
}
+end:
free(tmp_file);
return 0;
close_file: