This updates the default file extension -> content type mapping to include XML and JSON. I found having an XML template useful for returning a device description for the SSDP protocol (where you have to return a rather large XML document, with just one value generated dynamically), but needed this to get the content type header correct.
I also added JSON, since that is a common HTTP interchange format, and others might find it useful.
This updates the default file extension -> content type mapping to include XML and JSON. I found having an XML template useful for returning a device description for the SSDP protocol (where you have to return a rather large XML document, with just one value generated dynamically), but needed this to get the content type header correct.
I also added JSON, since that is a common HTTP interchange format, and others might find it useful.