aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-03-18 23:10:20 -0400
committerPaul Duncan <pabs@pablotron.org>2022-03-18 23:10:20 -0400
commitb05f3d64e419c1137a20eed5954a500560a1ff38 (patch)
tree61ee41333ea1813f25aec73aa0689be555fffd74
parentebefd7edaa5d6221a785c89bd5c303005ae42043 (diff)
downloadcvez-b05f3d64e419c1137a20eed5954a500560a1ff38.tar.bz2
cvez-b05f3d64e419c1137a20eed5954a500560a1ff38.zip
nvdmirror/sync.go: update Sync documentation
-rw-r--r--nvdmirror/sync.go13
1 files changed, 10 insertions, 3 deletions
diff --git a/nvdmirror/sync.go b/nvdmirror/sync.go
index afdc260..c7a82c1 100644
--- a/nvdmirror/sync.go
+++ b/nvdmirror/sync.go
@@ -16,10 +16,17 @@ package nvdmirror
// CVE feed and CPE match files in the destination directory. All
// file sizes and hashes are checked concurrently.
//
-// 3. Fetch the contents of the changed CVE feeds, CPE match files, and
-// the CPE dictionary.
+// 3. Build a list of changed CVE feeds and CPE match files.
//
-// All HTTP requests are sent with the following headers:
+// 4. Append the CPE dictionary, CISA KEVC URL, and the CWE list URL.
+//
+// 5. Fetch the contents of changed URLs. See note below about HTTP
+// request headers.
+//
+// 6. Return an array of updated files.
+//
+// Note: All HTTP requests in steps #1 and #5 above are sent with the
+// following headers:
//
// * if-modified-since: The last-modified header from the previous
// successful response, if it was set.