Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
curl: for 304, don't emit error if Last-modified is not present
Baptiste Daroussin committed 2 years ago
commit 56492aaf2b9b6bba9fa18809ec0d26b3ab784f6d
parent 942b46c
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);