aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tpl/data/data.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/tpl/data/data.go b/tpl/data/data.go
index 15d042e0a..d383447ac 100644
--- a/tpl/data/data.go
+++ b/tpl/data/data.go
@@ -116,6 +116,7 @@ func (ns *Namespace) GetJSON(urlParts ...interface{}) (interface{}, error) {
}
req.Header.Add("Accept", "application/json")
+ req.Header.Add("User-Agent", "Hugo Static Site Generator")
err = ns.getResource(cache, unmarshal, req)
if err != nil {