shithub: plan9front

Download patch

ref: 51ead1072b1c4b55ec898a083ed2bba878c33927
parent: c0d4498ab8a4e564156f49e5b6633a6335b91fc4
author: Sigrid <ftrvxmtrx@gmail.com>
date: Sun Apr 25 15:49:01 EDT 2021

file: partially revert 8419 to detect <?xml as html

--- a/sys/src/cmd/file.c	Sun Apr 25 11:41:34 2021
+++ b/sys/src/cmd/file.c	Sun Apr 25 15:49:01 2021
@@ -858,7 +858,7 @@
 	"<!--",			"XML file",			4,	"text/xml",
 	"<html>",		"HTML file",			6,	"text/html",
 	"<HTML>",		"HTML file",			6,	"text/html",
-	"<?xml",		"XML file",			5,	"text/xml",
+	"<?xml",		"HTML file",			5,	"text/html",
 	"\111\111\052\000",	"tiff",				4,	"image/tiff",
 	"\115\115\000\052",	"tiff",				4,	"image/tiff",
 	"\377\330\377\340",	"jpeg",				4,	"image/jpeg",