mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 18:15:42 +01:00
Add missing category list in ROLIE feeds. Resolves issue #41
This commit is contained in:
parent
13423c3d4d
commit
de595f5da9
2 changed files with 8 additions and 0 deletions
|
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
}},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue