summaryrefslogtreecommitdiff
path: root/xml.go
diff options
context:
space:
mode:
Diffstat (limited to 'xml.go')
-rw-r--r--xml.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/xml.go b/xml.go
index 3471bba..400ae8e 100644
--- a/xml.go
+++ b/xml.go
@@ -43,5 +43,6 @@ func toSitemap(seen map[url.URL]int) (string, error) {
return "", err
}
- return string(output), nil
+ withHeader := fmt.Sprintf("%s\n%s", xml.Header, output)
+ return withHeader, nil
}