Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
curl: for 304, don't emit error if Last-modified is not present
Baptiste Daroussin committed 2 years ago
commit 56492aaf2b9b6bba9fa18809ec0d26b3ab784f6d
parent 942b46c2aad7e24fb68baeb8b140bac6229e1302
1 file changed +2 -2
modified libpkg/fetch_libcurl.c
@@ -494,9 +494,9 @@ retry:

	if (res == CURLE_OK && t >= 0) {
		fi->mtime = t;
-
	} else {
+
	} else if (rc != 304) {
		pkg_emit_error("Impossible to get the value from Last-Modified"
-
		    " HTTP header");
+
		    " HTTP header: %ld", t);
		fi->mtime = 0;
	}
	fclose(data.fh);