mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
improve default header
* use `csaf_distribution` with an underscore as underscores are allowed by RFC9110 and it is more consistent as it is used with underscore at other places. * change example to `VERSION` to indicate that this is dynamic.
This commit is contained in:
parent
3a67fb5210
commit
1a2ce684ff
3 changed files with 3 additions and 3 deletions
|
|
@ -64,7 +64,7 @@ func (hc *HeaderClient) Do(req *http.Request) (*http.Response, error) {
|
|||
|
||||
// Use default user agent if none is set
|
||||
if userAgent := hc.Header.Get("User-Agent"); userAgent == "" {
|
||||
req.Header.Add("User-Agent", "csaf-distribution/"+SemVersion)
|
||||
req.Header.Add("User-Agent", "csaf_distribution/"+SemVersion)
|
||||
}
|
||||
return hc.Client.Do(req)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue