Add xteve.xml GZIP

This commit is contained in:
marmei
2019-12-16 20:23:05 +01:00
parent aa763726a3
commit 91b80bc8bb
5 changed files with 28 additions and 3 deletions

View File

@@ -216,7 +216,6 @@ func xTeVe(w http.ResponseWriter, r *http.Request) {
// XMLTV Datei
if strings.Contains(path, "xmltv/") {
w.Header().Set("Content-Type", "application/xml")
requestType = "xml"
file = System.Folder.Data + getFilenameFromPath(path)
@@ -227,6 +226,8 @@ func xTeVe(w http.ResponseWriter, r *http.Request) {
return
}
w.Header().Set("Content-Type", http.DetectContentType([]byte(content)))
}
// M3U Datei