1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Add missing category list in ROLIE feeds. Resolves issue #41

This commit is contained in:
Sascha L. Teichmann 2022-05-25 10:17:17 +02:00
parent 13423c3d4d
commit de595f5da9
2 changed files with 8 additions and 0 deletions

View file

@ -191,6 +191,10 @@ func (w *worker) writeROLIE(label string, summaries []summary) error {
Rel: "rel", Rel: "rel",
HRef: feedURL, HRef: feedURL,
}}, }},
Category: []csaf.ROLIECategory{{
Scheme: "urn:ietf:params:rolie:category:information-type",
Term: "csaf",
}},
Updated: csaf.TimeStamp(time.Now()), Updated: csaf.TimeStamp(time.Now()),
Entry: entries, Entry: entries,
}, },

View file

@ -227,6 +227,10 @@ func (c *controller) upload(r *http.Request) (interface{}, error) {
Rel: "rel", Rel: "rel",
HRef: string(feedURL), HRef: string(feedURL),
}}, }},
Category: []csaf.ROLIECategory{{
Scheme: "urn:ietf:params:rolie:category:information-type",
Term: "csaf",
}},
}, },
} }
} }