PerlDancer/Dancer — pull request #994 by Skeeve (2014-01-29 10:32:17+00:00)
Title: Update Handler.pm

I had a hard time trying to find why my Excel files of Content-type

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

(taken from http://blogs.msdn.com/b/vsofficedeveloper/archive/2008/05/08/office-2007-open-xml-mime-types.aspx )

were all corrupt.

Turns out Dancer thinks they are XML (they are zipped XML) because there is "xml" in the content-type.

A quick check on the net made me believe that real xml mime types have the string "xml" as seperate words (maybe with a "+" before it), so I think word boundaries would be good here.

At least they fixed my problem.