diff options
-rw-r--r-- | nvdmirror/sync.go | 13 |
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. |