diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-03-15 03:20:02 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-03-15 03:20:02 (GMT) |
commit | 6580b4e76f288c2a2591f25bc916f7a728816609 (patch) | |
tree | 77485b313ef4592b49162c2633ec42e86164acad /rhimport/importer.go | |
parent | e78b3cc629ff230ddb3479a036c1858a76ee7f5a (diff) |
set user agent on fetch/import
Diffstat (limited to 'rhimport/importer.go')
-rw-r--r-- | rhimport/importer.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rhimport/importer.go b/rhimport/importer.go index 952f75a..4473ee4 100644 --- a/rhimport/importer.go +++ b/rhimport/importer.go @@ -286,6 +286,7 @@ func importAudio(ctx *Context, res *Result) (err error) { easy.Setopt(curl.OPT_URL, ctx.conf.RDXportEndpoint) easy.Setopt(curl.OPT_POST, true) + easy.Setopt(curl.OPT_USERAGENT, "Radio Helsinki Import") var form *curl.Form if form, err = importAudioCreateRequest(ctx, easy); err != nil { |