From 3b096b4aaa1f4af04ec71f1b0547e6300cd17e21 Mon Sep 17 00:00:00 2001 From: Las Zenow Date: Tue, 21 Aug 2012 18:30:44 +0200 Subject: [PATCH] Add xml to reconice extensions --- reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reader.go b/reader.go index b4dbf35..8a57442 100644 --- a/reader.go +++ b/reader.go @@ -91,7 +91,7 @@ func readHandler(coll *mgo.Collection) func(http.ResponseWriter, *http.Request) return } - if ext == "html" || ext == "htm" || ext == "xhtml" { + if ext == "html" || ext == "htm" || ext == "xhtml" || ext == "xml" { var data readData data.S = GetStatus(w, r) data.Book = book