mirror of
https://github.com/activecm/rita
synced 2026-06-08 13:02:45 +00:00
Revert "Update the extension list with .xsd extension and application xml mim…"
This reverts commit 8f9be0291c.
This commit is contained in:
@@ -63,9 +63,7 @@ func TestReadValidTextMIMETypeFile(t *testing.T) {
|
||||
dataCSV: `plain,text/plain,".txt, .ps",[RFC2046][RFC3676][RFC5147]
|
||||
markdown,text/markdown,".md, .markdown",[RFC7763]
|
||||
javascript,text/javascript,".js, .mjs., es, .mjs",[RFC9239]
|
||||
html,text/html,none,[RFC21221]
|
||||
xml,text/xml," .xml, .xsd, .ent, .dtd, .mod",[RFC7303]
|
||||
xml,application/xml," .xml, .xsd, .ent, .dtd, .mod",[RFC7303]`,
|
||||
html,text/html,none,[RFC21221]`,
|
||||
writeChan: make(chan Data),
|
||||
expectedMIMETypes: []*ValidMIMEType{
|
||||
{
|
||||
@@ -104,48 +102,8 @@ func TestReadValidTextMIMETypeFile(t *testing.T) {
|
||||
MIMEType: "text/html",
|
||||
Extension: "",
|
||||
},
|
||||
{
|
||||
MIMEType: "text/xml",
|
||||
Extension: "xml",
|
||||
},
|
||||
{
|
||||
MIMEType: "text/xml",
|
||||
Extension: "xsd",
|
||||
},
|
||||
{
|
||||
MIMEType: "text/xml",
|
||||
Extension: "ent",
|
||||
},
|
||||
{
|
||||
MIMEType: "text/xml",
|
||||
Extension: "dtd",
|
||||
},
|
||||
{
|
||||
MIMEType: "text/xml",
|
||||
Extension: "mod",
|
||||
},
|
||||
{
|
||||
MIMEType: "application/xml",
|
||||
Extension: "xml",
|
||||
},
|
||||
{
|
||||
MIMEType: "application/xml",
|
||||
Extension: "xsd",
|
||||
},
|
||||
{
|
||||
MIMEType: "application/xml",
|
||||
Extension: "ent",
|
||||
},
|
||||
{
|
||||
MIMEType: "application/xml",
|
||||
Extension: "dtd",
|
||||
},
|
||||
{
|
||||
MIMEType: "application/xml",
|
||||
Extension: "mod",
|
||||
},
|
||||
},
|
||||
expectedTotal: 19,
|
||||
expectedTotal: 9,
|
||||
expectedError: false,
|
||||
},
|
||||
{
|
||||
|
||||
@@ -89,6 +89,5 @@ vnd.wap.wml,text/vnd.wap.wml,none,[Peter_Stark]
|
||||
vnd.wap.wmlscript,text/vnd.wap.wmlscript,none,[Peter_Stark]
|
||||
vtt,text/vtt,none,[W3C][Silvia_Pfeiffer]
|
||||
wgsl,text/wgsl,none,[W3C][David_Neto]
|
||||
xml,text/xml," .xml, .xsd, .ent, .dtd, .mod",[RFC7303]
|
||||
xml-external-parsed-entity,text/xml-external-parsed-entity," .xml, .ent, .dtd, .mod",[RFC7303]
|
||||
xml,application/xml," .xml, .xsd, .ent, .dtd, .mod",[RFC7303]
|
||||
xml,text/xml," .xml, .ent, .dtd, .mod",[RFC7303]
|
||||
xml-external-parsed-entity,text/xml-external-parsed-entity," .xml, .ent, .dtd, .mod",[RFC7303]
|
||||
|
Reference in New Issue
Block a user