Fix content-type

This commit is contained in:
DataHoarder 2022-02-19 04:12:06 +01:00
parent 43afb92ba5
commit 8321adf007

View file

@ -428,6 +428,7 @@ func main() {
byteEntries, _ := json.MarshalIndent(dirEntries, "", " ")
writer.Write(byteEntries)
} else {
writer.Header().Set("Content-Type", "text/plain")
http.ServeFile(writer, request, filePath)
}
}